[PHP-DB] Re: set password on a page

2003-09-21 Thread Gabriel Peugnet
In my last replay I told you to find the manual in the wrong place. The right place is www.php.net "Sagerat" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > How do I set up password on a page so that only restricted people can open > it? -- PHP Database Mailing List (http:/

[PHP-DB] Re: set password on a page

2003-09-21 Thread Gabriel Peugnet
Use setCookie() function. It places a global variable on the client that your programs can verify after. See the manual for the use of the function. Here is an example: // Example of file chkacces.php. with POST method. if( ($pass != "xyz" ){// where "xyz" is the right password.