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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bazmanblue
Forum Newbie
Posts: 1
Joined: Thu Dec 07, 2006 5:47 am

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

Post 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
User avatar
ok
Forum Contributor
Posts: 393
Joined: Wed May 31, 2006 9:20 am
Location: The Holy Land

Post 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()).
Post Reply