Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 24, 2004, 10:54 pm
rate this thread
Using PHP, I want to POST or GET some variables to a second php page.
This, I already know how to do.
However, on the second php page, I want to use a simple, standard HTML
form using the standard form-submitting method such as:
<form action="https://orderpage.ic3.com/hop/orderform.jsp "
whereupon both sets of variables --- the earlier variables that were
POSTed or GETted to the second page, along with the standard form
variables derived within the second page --- will be POSTed to the
In the second page, might I actually translate the received variables
into actual HTML code? For instance, if my first page POSTed the
variable xyz to the second page, then might the following code on the
second page receive that variable and then include it when the second
page's "Submit" button is pressed?
<? $xyz=$_POST['xyz']; ?>
<INPUT TYPE="HIDDEN" NAME="xyz" value="<?=$_POST['xyz']?>" >
Or how, otherwise, might this be done?
Re: PHP Post, then HTML Post?
Yes, this is OK (if you trust the user not to change the hidden value).
With session variables and (for example) CUrl.
Mail to my "From:" address is readable by all at http://www.dodgeit.com /
== ** ## !! ------------------------------------------------ !! ## ** ==
may bypass my spam filter. If it does, I may reply from another address!