Jump to content

Nilesta

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Nilesta's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. This actually worked. I don't know why, but it did. Thanks!
  2. As I mentioned in my post, $_POST was the first thing I tried. It doesn't work.
  3. Thanks for trying, guys. I've tried both suggestions, still not working. :'(
  4. Odd problem. I'm making ye olde login page. If I use GET, it works, if I use POST, it doesn't. Here's the code as it is, right now: include 'auth.php'; if (isset($HTTP_POST_VARS['name']) && isset($HTTP_POST_VARS['pass'])){ $UserName = $HTTP_POST_VARS['name']; $Password = $HTTP_POST_VARS['pass']; $Result = Login($UserName, $Password); }else{ $Result = 4; }; and the page: <form method="post" action="login.php"> User Name: <input type="text" name="name"> <BR> Password: <input type="password" name="pass"> <BR> <input type="submit" value="Login"></form> I'm using PHP 5, SQL server 2005, Windows XP. Originally I was using $_POST, instead of the http_post_vars, but I was getting desperate. It still doesn't work. If I take out the method=post, and switch the code to use $_GET, it will work, and log me in. As it is, now, or with using $_POST, it will return result 4 (as if I hadn't typed anything into the field). It doesn't throw an error, it just doesn't think I entered anything into the form. I've looked all over for an answer, but just can't find anyone even having the same issue, or mentioning the same issue. I even tried switching register_globals to on and resetting IIS. Still not working. Really starting to drive me bonkers. Help?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.