PHP-Download Link Sent To Email Via Form
Posted: Wed Jun 02, 2010 11:48 am
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.
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.