Posted by Bruno on 11/19/44 11:45
"mickey" <miguelportillaATpobrosDOTcom@ignore.this> wrote in message
news:cBt1g.31979$Jk3.14040@bignews5.bellsouth.net...
>
>
> I have a form like the one below. Upon submit I would like to self post to
> the same page but have the original $_POST data( which was posted to this
> page from another ) also be sent along with the new form field data. How
> can I achieve that? Thanks.
>
>
> <form name="form1" method="post" action="<?php echo
> $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; ?>"> <table> <tr>
> <th><input type="text" name="fields[]"</th>
> ...
> <th><input type="text" name="fields[]"</th>
> <th><input type="submit" value="Add" name="add"</th>
> </tr>
> </table> </form>
You could save the values in a cookie, and retrieve them on the next page
load (see the setcookie function).
Alternatively, you could add them to the next form as hidden fields, so they
are passed along with the current values on the next form post.
[Back to original message]
|