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
In order to stay on the same page on submit you can leave action empty (action="") into the form tag, or leave it out altogether.
For the message, create a variable ($message = "Success! You entered: ".$input;") and then echo the variable at the place in the page where you want the message to appear with .
Like this: