I have a form collecting data and inserting it into a mySQL table.
The processing is done by a php file.
My opening form tag looks like this:
<form action="php-form-processor.php" method="post">
The problem I have is, after the data is processed and entered into mySQL, I end up looking at a blank page - the mysite/php-form-processor.php page.
How can I avoid displaying the page and having a small pop up reading "Data successfully stored" instead.
Data validation in done in the same php file. How can I quit the script, before executing the INSERT query, in the case data validation rules are not met?
Any ideas will be greatly appreciated.
The processing is done by a php file.
My opening form tag looks like this:
<form action="php-form-processor.php" method="post">
The problem I have is, after the data is processed and entered into mySQL, I end up looking at a blank page - the mysite/php-form-processor.php page.
How can I avoid displaying the page and having a small pop up reading "Data successfully stored" instead.
Data validation in done in the same php file. How can I quit the script, before executing the INSERT query, in the case data validation rules are not met?
Any ideas will be greatly appreciated.