I am using HTML to make a form with a php processor, like so:
<?php require_once("./scripts/process.php"); ?>
<form action="" method="post">
<input type="text" name="name" />
<input type="submit" value="Submit" />
</form>
I have, in my PHP form, a script that echos a message that says "You didn't fill in some of the required fields. Go back and fill them in." But, when I load the page for the first time, it says "You didn't fill in some of the required fields. Go back and fill them in." How can I make it so it says this only when the form is submitted? I can't use <form action="./scripts/process.php it gives me a 500 Server Error, so I want to do it this way. Is there another PHP method to do this? If so, how? Thanks!