need help
| From: | bernie | Date: | Tue, 24 Aug 2004 09:45:09 +0000 |
| Subject: | need help | ||
| Groups: | php.evangelism | ||
| Request: | Send a blank email to php-evangelism+get-293@lists.php.net to get a copy of this message | ||
Hi, guys:
I am a totally newbie in php.
There is my question:
I am trying to login in a front page and test the username and password in a
php file. Then redirect to a webpage in a protected folder. The password and
username of the protect folder should match the login's. My php file like
this:
<?php
if ($_POST['name'] =="username" &&
$_POST['psword'=="passowrd")
{
//open the index page in folder 'username'
}
else
{
//error message
}
Thanks
Bernie