Re: Send data Header Response

From: Date: Fri, 07 Nov 2003 16:51:46 +0000
Subject: Re: Send data Header Response
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168871@lists.php.net to get a copy of this message
psuedo code index.php <php code to process form if(no_errors) redirect to another page ?> <form action="index.php" method="post"> <input type='text' name='user_name' value='<?php echo $_POST['user_name']?>" > <submit> </form> YOur submitting the form to itself so the $_POST variable is available in the form hope it help Pete Jonathan Villa wrote:
I would like submit a form to a page, do some processing on that page, then if need be, return to the referrer but also send the submitted data along with it... and data is coming from a POST form, not a GET. I tried header('location:'.$referrer.'?data'.$_POST); or something to that effect... If I can't do this, what options do I have?


« previous php.general (#168871) next »