Have an account? Sign in
Login  Register  Facebook
How can I pass data from a form to a different page?
I have a form (Code Below) that will collect an email address and what I want is that it will then pass the collected email address to the next page to say something like "We have sent the information to [email protected]"

So page 1 will contain the form and will pass the email address to page 2

<form method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl"  >
<p>
<input type="hidden" name="meta_web_form_id" value="111111111" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="website" />
<input type="hidden" name="redirect" value="http://www.website.com/getstarted/" id="redirect_1ab97d9c11111111161e5b4a75554" />

<input type="hidden" name="meta_adtracking" value="My_Web_Form" />
<input type="hidden" name="meta_message" value="1" />
<input type="hidden" name="meta_required" value="email" />

<input type="hidden" name="meta_tooltip" value="" />

<input class="textbox_1" id="awf_field-111111111" type="text" name="email" value="" tabindex="500"  />
</p><br />
        
<p><input type="submit" class="textbox_button" value="" name="cmdSubmit" tabindex="501" /></p>
</form>
Started: September 21, 2011 Latest Activity: September 21, 2011 forms parameters

the page 2 in the same site or its on differant server?
September 21, 2011

Actually, it was a javascript issue. Thanks anyway but I figured it out.
September 21, 2011

2 Answers
On the page to which you're posting the form, access the email address by simply using $_POST["textbox_1"] in php.

Posted: DesignShop
In: September 21, 2011

Where is the problem? You have an input named email, if you visitor puts its email address yhere it will be sent to addlead.pl together with the rest of the form.

Page 2 is written in Perl, according to the extension, so you should tag your question accordingly: you won't find much help on Perl with a question tagged as PHP.

Posted: Go
In: September 21, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer