Here's what my problem is, I am taking over a project(un commented) from some one else. This project would run fine in a host server. But once I downloaded to my local machine. It doesn't work. Here's the piece of code that I am having problem with. The file name is welcome.php
Code: Select all
<?
if($login == "yes"){
//do something...
//some SQL statement to verify user.
header("Location: ?welcome=user");
}
...
...
?>
<form method="post" action="welcome.php?login=yes">
username:
<br><input type="text" name="username" size="15">
<br>password:
<br><input type="password" name="password" size="15">
<br><input type="submit" value="login">
</form>Any suggestions will be much appreciated as I am stuck on this for couple hours now.