E
E
Evgeniy V.2017-07-05 08:34:19
JavaScript
Evgeniy V., 2017-07-05 08:34:19

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:
f5f2bccea45240cfa553bfe92bd9cfdc.png
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

7 answer(s)
E
Egor Zhivagin, 2018-12-18
@Krasnodar_etc

In the request itself, id is transmitted at all?

V
vadimtheslayer, 2018-12-22
@vadimtheslayer

After all, you explicitly specify id = NULL in the request.
Just specify the one you need ...

V
vorotech, 2019-01-06
@vorotech

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.

A
Andrey Andreev, 2017-07-05
@volkovecgenei

github.io doesn't support php.

M
McMike, 2017-07-05
@McMike

The request went to https://vamper2012.github.io/mail.php
QUESTION, what is there in this mial.php?

D
Dmitry, 2017-07-05
@slo_nik

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.

D
Denis, 2017-07-05
@72nomer

Your script uses form submission via AJAX, and JQUERY gives an error.
There is a suspicion that the request goes to another domain - Cross-domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question