Hey guys!

Just faced a prob so thought to ask the experts here..

Here's a form I'm using:

<form method="post" action="http://www.aweber.com/scripts/addlead.pl">
<input type="hidden" name="unit" value="adwordstest">
<input type="hidden" name="redirect" value="http://www.website.com/thankyou.php?e=">
<input type="hidden" name="meta_adtracking" value="1">
<input type="hidden" name="meta_message" value="1">
<input type="hidden" name="meta_required" value="from">
<table>
<tr><td><center></center></td></tr>
<tr><td><input type="text" name="from" value="" size="20"></td></tr>
    <tr><td><center></center></td></tr>
<tr><td align="center"><input type="submit" name="submit" value="Submit"></td></tr>
</table>
</form>

When the visitor enters his email and hits "submit" - I want his email value to be added at the end of my redirect url. Which is this:

http://www.website.com/thankyou.php?e=

So if he enters this email: joe@yahoo.com

The redirect link should become:

http://www.website.com/thankyou.php?e=joe@yahoo.com

Do you know how to do this??

Thanks a ton for your time!!

Shariq.

Recommended Answers

All 2 Replies

Change the method in the form-tag to "get". This adds the value and the variablename automatically to the URL you set in "action".
Example:

<form method="get" action="redirect.php">
<input type=text name="e"></input>
<input type=submit>
</form>

is automatically changed to redirect.php?e=enteredemailaddress

Greetings
Simon

Change the method in the form-tag to "get". This adds the value and the variablename automatically to the URL you set in "action".
Example:

<form method="get" action="redirect.php">
<input type=text name="e"></input>
<input type=submit>
</form>

is automatically changed to redirect.php?e=enteredemailaddress

Greetings
Simon

Thanks for the tip Simon!

Thing is - I can't change the form-tag to "get" coz then it doesn't work with aweber.com

(Aweber.com is the service I'm using to store the email - and they provided me with the form.)

Is there any other solution??

Thanks again!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.