Here's what I did. $error = ""; if (error_in_field_1) $error .= "A"; if (error_in_field_2) $error .= "B"; if (error_in_field_3) $error .= "C";
and so on. Then, when displaying the form... if (strstr($error,"A")) { echo "You forgot to fill in this field<br>\n"; } echo "<input type=\"text\" name=\"Whatever\" value=\"$whatever\">"; etc. > -----Original Message----- > From: Jason Dulberg [SMTP:[EMAIL PROTECTED]] > Sent: Sunday, February 17, 2002 23:40 > To: Martin Towell > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] form submission error trapping > > RE: [PHP] form submission error trappingThanks for the code.... Is there a > way to keep track of what fields had the errors as its possible for people > to have like 5 errors? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php