rc69, on Jan 1 2006, 06:55 AM, said:
Also, either i'm missing something, or you have register_globals on your server turned on, which is a bad thing.
so yeah, im not hijacking this topic or w/e, just asking a short questing
Posted 02 January 2006 - 07:28 AM
rc69, on Jan 1 2006, 06:55 AM, said:
Posted 02 January 2006 - 01:35 PM
Posted 02 January 2006 - 04:12 PM
Posted 06 January 2006 - 03:09 PM
<?php
if(isset($user) && isset($pass))
{
//do login process here, for now we'll echo out the use submits
echo $user . ' - ' . $pass
}
?>
<form action="<?php echo $PHP_SELF; ?>" method="post">
Username: <input type="text" name="user"><br>
Password: <input type="text" name="pass"><br>
<input type="submit" value="Login">
</form>, I have a form that submits to itself and the script then checks the username and password submitted is set, but I would not need to fill in that form in order to get logged! I would just need to type login details via the url as parameters, like so:<?php
if(isset($_POST['user']) && isset($_POST['pass']))
{
//do login process here
echo $_POST['user'] . ' - ' . $_POST['pass'];
}
?>
<form action="<?php echo $PHP_SELF; ?>" method="post">
<input type="text" name="user"><br>
<input type="text" name="pass"><br>
<input type="submit" value="Login">
</form>Your form should work when you submit your data using the form only!. Now if you tried the old trick of passing the variables over the url again, like so:Posted 06 January 2006 - 03:36 PM
Edited by eldiablo, 06 January 2006 - 03:38 PM.
Posted 06 January 2006 - 06:36 PM
0 members, 1 guests, 0 anonymous users