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 Link to comment https://forums.phpfreaks.com/topic/165861-solved-unsure-what-to-call-this-question-it-is-php-related-tho/ 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. Link to comment https://forums.phpfreaks.com/topic/165861-solved-unsure-what-to-call-this-question-it-is-php-related-tho/#findComment-874888 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. Link to comment https://forums.phpfreaks.com/topic/165861-solved-unsure-what-to-call-this-question-it-is-php-related-tho/#findComment-874892 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 . Link to comment https://forums.phpfreaks.com/topic/165861-solved-unsure-what-to-call-this-question-it-is-php-related-tho/#findComment-874893 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.