[PHP] quick question form validation

2003-02-12 Thread Didier McGillis
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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
Is there a way that I can redirect and keep the id.


From: Jason Wong [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] quick question form validation
Date: Thu, 13 Feb 2003 00:55:59 +0800

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
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:26, Didier McGillis wrote:
 Is there a way that I can redirect and keep the id.

If you want to _redirect_ use header().

-- 
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
--
/*
It's a dog-eat-dog world out there, and I'm wearing Milkbone underware.
-- Norm, from _Cheers_
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] quick question form validation

2003-02-12 Thread Didier McGillis
I get this.

Warning: Cannot add header information - headers already sent by (output 
started header.php:7) in add_store.php on line 186



From: Jason Wong [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] quick question form validation
Date: Thu, 13 Feb 2003 01:32:59 +0800

On Thursday 13 February 2003 01:26, Didier McGillis wrote:
 Is there a way that I can redirect and keep the id.

If you want to _redirect_ use header().

--
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
--
/*
It's a dog-eat-dog world out there, and I'm wearing Milkbone underware.
-- Norm, from _Cheers_
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] quick question form validation

2003-02-12 Thread Jason Wong
On Thursday 13 February 2003 01:40, Didier McGillis wrote:
 I get this.

 Warning: Cannot add header information - headers already sent by (output
 started header.php:7) in add_store.php on line 186

OK, did you search the archives?

-- 
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
--
/*
Would you *__really* want to get on a non-stop flight?
-- George Carlin
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php