Answer the question
In order to leave comments, you need to log in
Problems with the feedback form, how to fix it?
I took a ready-made feedback form here
I decided to check it, it gives such errors:
Tell me how to solve it or throw off the ready-made feedback form, I have already tried 5 pieces, they do not work. Site without CMS.
Answer the question
In order to leave comments, you need to log in
After all, you explicitly specify id = NULL in the request.
Just specify the one you need ...
If you do not want to pass the current user's ID for the current user (and not create a potential vulnerability for obtaining data from an arbitrary user), you need to use a session. The session ID after successful authentication is returned as a cookie and is automatically transmitted with each request. Thus, the server finds the user and then you use the id received from the session.
Read more in the express.js documentation on how to set up a session and store it on the server side between user requests.
The request went to https://vamper2012.github.io/mail.php
QUESTION, what is there in this mial.php?
Good morning.
The script is quite working.
Do the files (index.html, script.js, mail.php) lie on the same level, that is, in the same directory?
Your first error (404) indicates that the resource (file, address) was not found, the second (405) indicates that the method (which forms are usually sent to) is not supported.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question