Results 1 to 3 of 3

Thread: register email to download pdf

  1. #1
    Join Date
    Jan 2014

    register email to download pdf

    Hi everyone

    I would like people to have access to a pdf for download only after registering an email address and name.
    How can I do that, please?

    Of course, I need to have those email addresses and names in my record;


  2. #2
    Join Date
    Jan 2014
    Boston, Massachusetts
    You will need to set up a database first. Then, using PHP, connect to the database.

    Then a form using method="post" to send the input fields to the database.

    Pseudo code would be something like

    if email and name are true
    and if email is not already in the database
    then download pdf
    else echo "please enter your name and email address";

    Maybe someone could properly write it. I'm pretty new to PHP syntax but I get the logic.

  3. #3
    Join Date
    Jan 2014
    Thanks winthropite

    I am pretty new in html....Ok, I have to dive into PHP now...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center