Re: quick question form validation

From: Date: Wed, 12 Feb 2003 16:55:59 +0000
Subject: Re: quick question form validation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135327@lists.php.net to get a copy of this message
On Thursday 13 February 2003 00:47, Didier McGillis wrote: > 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.""); > } Please RTFM on the correct use of include(). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I don't want to achieve immortality through my work. I want to achieve immortality through not dying. -- Woody Allen */

« previous php.general (#135327) next »