faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 4 people (50%) answered Yes
Recently 2 of 4 people (50%) answered Yes

Entry

I want to know how to make a page accessible only by a password: url/page.htm?pass=PASSWORD etc

Feb 23rd, 2007 22:46
PHP Man, Jason Ross, John Jones,


This is really not a good idea, for a number of reasons. The biggest 
is 
that it allows for easy brute force attacks against the page, etc.
That said, $_GET["variablename"] is typically how you would refer to a 
variable which is provided in the url (though you may possibly need to 
reference it as $HTTP_GET_VARS["variablename"] depending on the 
version 
of php)
===
gmarketing.com/articles/read/171/Making_Your_Web_Page_Accessible.html
i hope that helps.
http://americanahost.com
http://www.qwesz.com