rainprop Posted March 14, 2010 Share Posted March 14, 2010 this is my code..can someone tell me wats wrong in that line?? if ($_GET["op"] == "login") { if (!$_POST["username"] || !$_POST["password"]) { die("You need to provide a username and password."); } Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 14, 2010 Share Posted March 14, 2010 Use isset before using $_GET['op'] eg if (isset($_GET['op']) && $_GET["op"] == "login") { if (!$_POST["username"] || !$_POST["password"]) { die("You need to provide a username and password."); } Quote Link to comment Share on other sites More sharing options...
rainprop Posted March 14, 2010 Author Share Posted March 14, 2010 ok thanks alot..that sure helped.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.