Script to transfer ZIP or email to offer page


Im looking for a script, which is able to transfer ZIP or email to offer page.


1. Users sees my PPV page and enters ZIP code
2. ZIP code is automatically loaded into the offers ZIP code field.

Could be paid or free!


User Comment:
Are you sure you need a special script for that? Aren’t these just pre-popable offers you can use for that kind of stuff? Have a look at Jason’s site about pre poppable offers and how they work…filiate-offers

User Comment:
ppvnewbie, this is exactly what I mean. Is there a finished script for adding the random variable, which corresponds to the user data?

// connect to your db
// pull the id from the uri
$id = htmlentities(trim($_GET[‘id’]));
// build your sql for pulling the record from the database
$sql = "SELECT * FROM records WHERE id = ‘$id’";
// get the result from the database for the id
$sql_result = mysql_query($sql);
// put that result into an array
$row = mysql_fetch_row($sql_result);
// here we’re redirecting the user to the landing page with the pre-pop uri, this is
// assuming that first name is the second field, last name the 3rd field and phone number
// the 4th field.
echo "<meta http-equiv="refresh" content="0;url={$row[1]}&lname={$row[2]}&phone={$row[3]}"/>";

I see this, but Im not a PHP guy

User Comment:
As mentioned above, it has to be a pre-poppable offer to be able to do that. In which case, you append the zip code in the querystring of your affiliate link in the variable specified by your affililate network. It could be done something like below…

HTML Code:
<title>My Lead Form</title>
<form method="get" action="">
<input type="hidden" name="affid" value="12345" />
<input type="hidden" name="offerid" value="789" />
<input type="hidden" name="subid" value="mysubid" />
Please enter your zip code: <input type="text" name="zip" /><br />
<input type="submit" />

In the case of the user entering "92008" into the form field, when the form is submitted it will send the user to


Obviously you’ll have to dissect your affiliate link to put the correct domain, path, variables, and values into the form.

LMK if you have any other questions.

User Comment:
Pure gold! Thanks a lot!

The Article Published IN 01-24-2011 09:24 AM

Share To More ()