When you submit a form, loaded the same page in what may be the matter?

0 like 0 dislike
11 views
by | 11 views

2 Answers

0 like 0 dislike
When you submit a form, loaded the same page in what may be the matter?
The case may be, any action specified in this form.
by
0 like 0 dislike
\r\r


Note the action you have is that when you click on the send button, there is an overload of the same page. Instead, the action must specify the php file that is processing logic of the letter.

more specifically something like this
\r\r


and so it should look like mail.php
$mail = "Your email" $name = htmlspecialchars($_POST['feedback-name']); // get user name $mailUser = htmlspecialchars($_POST['feedback-email']); // get the user's email $massage = htmlspecialchars($_POST['feedback-message']); // get user message mail($mail, "the Letter from the form 'Contacts'", "User name".$name."and mailbox".$mailUser."Sent you a message ". $massage. "Don't forget to reply!"); // send the mail in the box


It seems to be so... if nothing is messed up
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,911 users