If I have a form with a text box, when the user type in anything, I can pass the value from this form to form2, eg. $text1.
When I am in form2, I can print out the content like:
print $text1.
how can I pass the $text1's content to form3?
Alex
use a hidden field in form2
<INPUT TYPE=hidden NAME=$text1 VALUE="<?=$text1; ?>">
oops should look like this
<INPUT TYPE=hidden NAME=text1 VALUE="<?=$text1; ?>">
I tried this before, I just wish to have a better way. Anyway, thanks. 🙂
You could use foreach for the $POST(or $GET) array.
foreach($_POST as $k=>$v) echo "<INPUT type=\"hidden\" name=\"$k\" value=\"$v\">";
foreach($_GET as $k=>$v) echo "<INPUT type=\"hidden\" name=\"$k\" value=\"$v\">";