Getting value from input form
Posted: Sat Aug 07, 2010 8:22 pm
Hi, i created a login script. it should ask the user to submit an access id then if it is correct, it will redirect the user to another folder.
I think i did it correctly but it gives me this error:
[text]The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.[/text]
This is my script :
I think i did it correctly but it gives me this error:
[text]The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept
cookies.[/text]
This is my script :
Code: Select all
<title>Marv's Website</title>
<?php
echo "Please enter your Access ID ";
?>
<form name="form1" method="post" action="">
<input type="password" name="ui_login" id="ui_login">
</form>
<a href="index.php~">index</a><input name="Submit" type="button" value="Submit">
<?php
$realid="google";
$access_id=$_POST['user'];
if ('$access_id'=='$realid')
{
header('Location: http://192.168.1.105/Local Sharing');
echo "Access ID approved";
}
else
{
header ('Location: http://192.168.1.105/index.php');
echo "Login failed";
}
?>