I have a PHP form that is located on file contact.html
.
The form is processed from file processForm.php
.
When a user fills out the form and clicks on submit,
processForm.php
sends the email and direct the user to - processForm.php
with a message on that page "Success! Your message has been sent."
I do not know much about PHP, but I know that the action that is calling for this is:
// Die with a success message
die("<span class='success'>Success! Your message has been sent.</span>");
How can I keep the message inside the form div without redirecting to the
processForm.php
page?
I can post the entire processForm.php
if needed, but it is long.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…