I have php4 on system FreeBSD.I did think that php work very well
(function phpinfo() work), if I didn't probe above script:
<?
if(!isset($name )&&!isset($pass word))
{
?>
<h1>Please Log In</h1>
This page is secret.
<form method = post action = "secret.php ">
<table border = 1>
<tr>
<th> Username </th>
<td> <input type = text name = name> </td>
</tr>
<tr>
<th> Password </th>
<td> <input type = password name = password> </td>
</tr>
<tr>
<td colspan =2 align = center>
<input type = submit value = "Log In">
</td>
</tr>
</form>
<?
}
else if($name=="user "&&$password==" pass")
{
echo "<h1>Here it is!</h1>";
echo "I bet you are glad you can see this secret page.";
}
else
{
echo "<h1>Go Away!</h1>";
echo "You are not authorized to view this resource.";
}
?>
Always is fine but php don't read my input string.$name and $password
always = ""
What the problem?
Sorry for my litle english.
Mioduszaewski Artur.
(function phpinfo() work), if I didn't probe above script:
<?
if(!isset($name )&&!isset($pass word))
{
?>
<h1>Please Log In</h1>
This page is secret.
<form method = post action = "secret.php ">
<table border = 1>
<tr>
<th> Username </th>
<td> <input type = text name = name> </td>
</tr>
<tr>
<th> Password </th>
<td> <input type = password name = password> </td>
</tr>
<tr>
<td colspan =2 align = center>
<input type = submit value = "Log In">
</td>
</tr>
</form>
<?
}
else if($name=="user "&&$password==" pass")
{
echo "<h1>Here it is!</h1>";
echo "I bet you are glad you can see this secret page.";
}
else
{
echo "<h1>Go Away!</h1>";
echo "You are not authorized to view this resource.";
}
?>
Always is fine but php don't read my input string.$name and $password
always = ""
What the problem?
Sorry for my litle english.
Mioduszaewski Artur.
Comment