PHP-Download Link Sent To Email Via Form

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
ACutbill
Forum Newbie
Posts: 1
Joined: Wed Jun 02, 2010 11:41 am

PHP-Download Link Sent To Email Via Form

Post by ACutbill »

Hi everyone,

I'm totally new to PHP and a beginner at web programming, but I've been asked to code a task that may require it. As of now, I have a terms and conditions page where the user must fill a form, then check off an agreement a box to download a file. The button is programmed via javascript and the form is processed through a CGI script that my host has provided which sends the form to a given email address upon submission then redirects the user to the file. However, with this script the user can obviously make up a bogus email and get the files. I would like to implement a system where, once they have agreed to the terms and filled the form, the download link is sent to them in an email. I've seen these on many download sites, but I'm not sure if it's done with PHP, SQL or something else.
Post Reply