How to request user's email before downloading a file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • creativejen
    New Member
    • Jul 2012
    • 1

    #1

    How to request user's email before downloading a file

    Hello,

    We have a website done completely in HTML 4, and I've been tasked with coming up with a way to have the user input their email address to access/download files.

    After submitting their email address, it can either take them directly to the file or be redirected to a "Thank You" page that has a link to the file.

    We would then be able to see a list of the email addresses & who downloaded what.

    Is there any way to do this?

    Thank you!

    Jen
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can't do it in just HTML. There would be no way to store what is received on the server. You will have to use a server side scripting language.

    Comment

    • ariful alam
      New Member
      • Jan 2011
      • 185

      #3
      you can hide a text box and a button below the link of download. when a client click on a download link the hidden text box and button will show on screen to give client's email id. after clicking on the button next to text box the text box email id and download information will be send to server side script using ajax that store the information in database. after that the page redirect the page and give a link of the file that need to be download.

      Comment

      Working...