stelthius Posted July 13, 2009 Share Posted July 13, 2009 Basicly, i have a login form, with the login process done on the same page, now, my forgot password i want to have that code in login.php also, but only be called when i click the forgot password button and then it will change the table to the forgot password table with the email input area & send button... so say for instance i name the button login.php?=op=doforgotpass how would i start off my forgot password code so the button can call it, my explanations are pretty Shi**y so im sorry if its a bad en lol Quote Link to comment Share on other sites More sharing options...
jamesxg1 Posted July 13, 2009 Share Posted July 13, 2009 i dont fully understand what you mean here mate but from what i can see maybe this could be a solution if ($_GET['op'] == 'doforgotpass') { YOUR 'FORGOT PASSWORD' CODE HERE } then when the url login?op is equal to 'doforgotpass' the code will be displayed . James. Quote Link to comment Share on other sites More sharing options...
stelthius Posted July 13, 2009 Author Share Posted July 13, 2009 Thanks mate, thats exactly what i meant, i was doing that but i missed the { off the end and it was annoying me like mad lol thanks man. Quote Link to comment Share on other sites More sharing options...
jamesxg1 Posted July 13, 2009 Share Posted July 13, 2009 Thanks mate, thats exactly what i meant, i was doing that but i missed the { off the end and it was annoying me like mad lol thanks man. Lol, Glad it worked mate, and i do that all the time . 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.