I have got a form on my website, of which the action page takes the input from the form, and inserts it into a database.
However, I would like to put some error handling in, so that when, for instance, a field is missed out, or non numeric data is put into a numeric field, the form is reloaded, with the original correct information included.
Is there a way of saying something like:
if ($this_event_happens)
{
relaod the previous page
}
???? Or do I need to use some JavaScript? And how do I get the original info into the form? Do I record them as session variables?
Thanks in advance for your help