tags:

views:

38

answers:

1

Hi

I want visitors to my website to fill out a contact form before they can access the downloads page. I am looking for online resources or examples. The only ones I can find are username and password authentication which I don't need. I am hoping to do it in PHP. At the moment my Contact form emails me their details but anyone can access the downloads page.

Thank you

A: 

You're not giving us much to go on!

Based on your tags I assume your developing in php. This tutorial should give you what you need Website Authentication - a simple PHP sample

Farthest Shore
My sincere apologies, I am looking for online resources or examples. The only ones I can find are username and password authentication. I am hoping to do it in PHP. At the moment my Contact form emails me their details but anyone can access the downloads page.
Darragh169
Well the principals are all the same. You need to create a session when the user submits the form, and then check the session state on the downloads page. Information on php session variables here http://php.about.com/od/advancedphp/ss/php_sessions_2.htm
Farthest Shore
Cool. Thank you
Darragh169