Hi, I am attempting to write a login script (the first one I've had to do), and I have a problem. The username and password information is passed to another page via GET, but the $_GET array on that page appears to be empty.
The form on the first page is below:
<form method="GET" action="checklogin.php">
Name: <input type="text" name="Name" size="20"><br>
Password: <input type="password" name="Password" size="20"><br>
<br>
<input type="submit" value="Login" name="Login">
</form>
and the entire contents of checklogin.php are:
<?php
echo "Name entered was: ";
echo $_GET['Name'];
?>
I am using the above until I can actually get the info to use and hence be able to write the script.
The output from checklogin.php is:
Name entered was:
Is there something wrong with how I am using $_GET?
The form on the first page is below:
<form method="GET" action="checklogin.php">
Name: <input type="text" name="Name" size="20"><br>
Password: <input type="password" name="Password" size="20"><br>
<br>
<input type="submit" value="Login" name="Login">
</form>
and the entire contents of checklogin.php are:
<?php
echo "Name entered was: ";
echo $_GET['Name'];
?>
I am using the above until I can actually get the info to use and hence be able to write the script.
The output from checklogin.php is:
Name entered was:
Is there something wrong with how I am using $_GET?