Page 1 of 1

how to write an email script that goes to download page?

Posted: Thu Dec 07, 2006 5:53 am
by bazmanblue
hello everyone nice to meet you all. i am trying my hardest to find a script that allows people to enter five bona fied email addreses and then click the submit button which takes them to a download page for a free ebook. Could anyone point me in the right direction. thanks in advance
barry

Posted: Thu Dec 07, 2006 5:59 am
by ok
You can write something like that (if I understand what you want):

Code: Select all

<?php
$email_address = $_GET['email'];
// Do what you need to do with the email...
header("Location: http://www.ebook.com/?igUTDbKb");
exit();
?>
Just remember not to echo/print anything to the browser before and after you send the header (header()).