![]() |
HTML form help
Arrgh. I'm mired in form tags, javascript, and cgi/perl. There's ONE freaking thing that I can't get to work, hopefully someone can give me a hand.
I'm creating a form that I've split up into 2 pages. What I need to do is take the POST results from the first page and make them hidden inputs on the 2nd. I can't for the life of my figure it out. So the form on page 1 is: <form method="post" action="page2.html"> <input type="text" name="input1"> <input type="button" name="submit" value="submit"> </form> and then page two I've tried (with no success): <form method="post" action="a_script.cgi"> <input type="hidden" name="input1" value=$_POST['input1']> .... .... </form> What am I doing wrong? Is it even possible? |
Oh wait, I think I've got it. PHP. 'cause you know, juggling 3 languages wasn't enough.
|
Ouch.
I'm glad you got it, but that really hurt my little pea brain. |
<form method="post" action="a_script.cgi">
<input type="hidden" name="input1" value="<?php echo $_POST['input1']; ?>"> .... .... </form> |
Yeah, got that. I was trying to find a way around PHP since this is within a wordpress page and I didn't want to either edit the template or add a plugin, but I finally faced facts and went the plugin route.
Of course I finally get that figured out and stop my cgi script from giving me sh*t, only to learn that the host's email service has taken a sh*t and sendmail isn't responding to requests. Ef. |
Type in the thingy, then press the button, press the spacebar a few times then ask someone like GD or Andrew for help.
At least that's what I'd do...:p |
You do the Hokey Pokey and you turn yourself around...
|
All times are GMT -7. The time now is 11:44 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.