require name and e-mail to download a PDF

I have a PDF file I want to let users download from my site. However, I want for you to require them in order to enter a appoint and e-mail address to do so. I’m not quite sure how I should try this. Is there some form of CGI/Perl or PHP plug-in WHEN I should install as well as use Or perhaps there is something else

For PHP, it must be relatively straightforward. Produce a form, make it point towards PHP script, after which have the PHP script authenticate all of them, then redirect them into the appropriate PDF track. Alternatively, you may make the PHP script straight read the PDF in after which write it out to the browser, which will mean that you could put your PDF FILE somewhere where it’s literally impossible gain access to without authentication.

As a final point, you can employ plain ol’ HTTP authentication with a. htaccess and. htpasswd track, if you hence wish.

This entry was posted in Web Design and tagged , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *