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?

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



Reply via email to