Re: Re: two submit buttons redirecting to two scripts

From: Date: Mon, 14 Oct 2002 22:54:48 +0000
Subject: Re: Re: two submit buttons redirecting to two scripts
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-119961@lists.php.net to get a copy of this message
> here is the error message, > Warning: Cannot add header information - headers already sent by > (output started at /home3/www/antriksh/resources/action2.php:5) in > /home3/www/antriksh/resources/action2.php on line 13 > > any help? > that warning is probably generated because you're using the header() function to perform the redirect. you can't send a header if you already echoed some output to the screen, which you apparently do on line 5 of your php script (see the "output started at .../action2.php:5" message telling you what line first sent output). either get rid of all output before line 13, or use a different method to perform the redirect. otherwise it looks ok. good luck /nick

« previous php.general (#119961) next »