jbwebdesign Posted June 11, 2009 Report Share Posted June 11, 2009 Text Monster Welcome to Text Monster.org Promotion Section! <?php //echo the error here if($result!=1){ echo $err; } ?> Please log in to your account Please enter your Username: Please enter your Password: To Become a promoter click here! © 2009 All Rights Resereved Textmonster.org Quote Link to comment Share on other sites More sharing options...
jbwebdesign Posted June 11, 2009 Author Report Share Posted June 11, 2009 Text Monster Home Personal info promotion Packages my sales Promoter Menu My Personal information My Promotion code My sales Promoter Support Log Out Welcome to Textmonster.org Promoters Section! Here you will be able to administer everything that goes on in the textmonster world! We have tried to make it as easy as can be! You will be able to see your whole entire history on how many sales you have made and how much money you are being paid. Recent Updates: As of now we have not added any updates. if you have any comments, ideas or anything that can make our services better please do not hesitate to tell us! We will do what we can to make our services excellent! © 2009 All Rights Resereved Textmonster.org Quote Link to comment Share on other sites More sharing options...
BeeDev Posted June 11, 2009 Report Share Posted June 11, 2009 Haven't had the chance to go through whole of your script, but it looks like you're redirecting the user BEFORE the sessions are given value: ... if($result!=1){ $err = " invalid login info, please try again!"; } else { header('Location:index.php'); $_SESSION['user'] = $user; $_SESSION['pass'] = $pass; $_SESSION['result'] = $result; } } ... The piece of code header('Location:index.php'); should be after $_SESSION() takes the Username and Password values Quote Link to comment Share on other sites More sharing options...
jbwebdesign Posted June 11, 2009 Author Report Share Posted June 11, 2009 Thanks for the fix such a dumb mistake on my part.....i should've known that lol 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.
Note: Your post will require moderator approval before it will be visible.