i got this hole thing from my frind when i try to use it it says
Notice: Undefined variable: action in c:\program files\apache group\Apache\htdocs\login_gam.php on line 4
heres the main login thing:
hers the forum_gam.php file
annd here is the config_gam.php
some one see what is wrong?
Notice: Undefined variable: action in c:\program files\apache group\Apache\htdocs\login_gam.php on line 4
heres the main login thing:
Code:
<?php include('config.php'); if($action == "submit"){ if(($userinput == "")||($passinput == "")){ echo "$noinfo"; } else { if(($userinput == $username)&&($passinput == $password)){ header( "Location: $location" ); } else { echo "$badinfo"; } } } include('form.php') ; ?>
hers the forum_gam.php file
Code:
<form name="form1" method="post" action=""> <p>Username: <input name="userinput" type="text" id="userinput"> <br> <br> Password: <input name="passinput" type="password" id="passinput"> <br> <br> <input type="submit" name="Submit" value="Submit"> <input type="reset" name="Reset" value="Reset"> <input name="action" type="hidden" id="action" value="submit"> </p> </form>
Code:
<?php $username = "test"; $password = "test"; $location = "http://localhost:81/upload.php"; $badinfo = "Bad Info!!!!!!!"; $noinfo = "No Info Here";
Comment