Zend - The PHP Company




Code Gallery: wcmunger


password protection using PHP javaScript & HTML  

Type: code fragment
Added by: wcmunger
Entered: 18/08/2000
Last modified: 08/12/1999
Rating: ** (8 votes)
Views: 12903
I used a html form that has a password field named password and a submit button named submit. When the submit button is clicked the page reloads with the $password variable sent back to the server. Then when php resends the html to the client it includes the appropriate javascript to redirect them to the correct protected page.




Search