Re: multiple FORMS on same page problem.

From: Date: Tue, 16 Sep 2003 16:05:36 +0000
Subject: Re: multiple FORMS on same page problem.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162760@lists.php.net to get a copy of this message
Golawala, Moiz M (IndSys, GE Interlogix) wrote:
It is almost working.. I can't figure out why I can get the "someVal" to page5.php. file: page4.php <?php if (isset($_REQUEST['submit1'])){ echo "button 1 was clicked, act accordingly"; echo "this the request values"; echo $_REQUEST['someVal']; }elseif(isset($_REQUEST['submit2'])){ session_start(); echo "button 2 was clicked, act accordingly"; $_SESSION['post'] = $_POST; header("Location: http://127.0.0.1/Alarms/page5.php?<?=SID?>");
header("Location: http://127.0.0.1/Alarms/page5.php?" . SID); But this is not going to work. You can only redirect with header() if there has not been any output. That's why you are getting the errors. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#162760) next »