I know ASP, not PHP. That being said, I have a PHP script that works fine after I post user input, however, the script runs when the page loads before the user input can be submitted...so I get an error. How do I prevent the code from running before the user input is posted? Thank you to anyone who can help.
Hi, you have to check $_POST array using simple if statement: if ($_POST){ /* your code here */ } PHP: Regards