Posted by Toby A Inkster on 04/05/07 22:08
Jerim79 wrote:
> The obvious problem is that when the page first loads, it displays the
> error message.
I tend to add a hidden form field:
<input name=submitted type=hidden value=1>
Then, before outputting the error message, check the value of
$_POST['submitted']. If it's not '1', then don't output the error
message -- just output a plain form.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
[Back to original message]
|