quick question form validation
| From: | Didier McGillis | Date: | Wed, 12 Feb 2003 16:47:23 +0000 |
| Subject: | quick question form validation | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135325@lists.php.net to get a copy of this message | ||
I must be missing something, but I am doing some very simple validation of a form. So if it is incorrect I need to redisplay the form. Normally what I do is I just include the form back in. This one I have tried to include the form back in, but I need to keep an id number. That seems to blow up my include.
Any thoughts?
if ($coll_id=="") {
$invalid=1;
$error[] = "Please include a group to associate with this store.";
}
if ($invalid==1) {
$included=1;
include("add_store.php?id=".$id."");
}
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963