Aug 17th, 2009, 6:58 AM
The only way I have got server side validation to work on my system without returning an empty form if validation fails is to use $_POST instead of $fields as given in the online examples.
e.g.
instead of...
e.g.
PHP Code:
<?=htmlspecialchars($_POST["fullname"])?>
instead of...
PHP Code:
<?=htmlspecialchars($fields["fullname"])?>