Xtremer360 Posted October 31, 2009 Share Posted October 31, 2009 The idea here is that when the user clicks on the submit button it should load the mainscreen function into the div it is currently in. function returnmain() { print "<h2 class=backstage><form method=POST><input type=hidden name=action value=mainscreen><input type=submit value=\"Return to Main Menu\" class=button200></form></h2>\n"; print "</center></div>\n"; } Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/ Share on other sites More sharing options...
mattal999 Posted October 31, 2009 Share Posted October 31, 2009 And what is the problem exactly? Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/#findComment-948383 Share on other sites More sharing options...
Xtremer360 Posted October 31, 2009 Author Share Posted October 31, 2009 I don't know what I have to do to make it load the mainscreen function into the div. Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/#findComment-948384 Share on other sites More sharing options...
Xtremer360 Posted October 31, 2009 Author Share Posted October 31, 2009 Figured it out nevermind thanks though for offering. Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/#findComment-948386 Share on other sites More sharing options...
unitechy Posted October 31, 2009 Share Posted October 31, 2009 why not post the solution here Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/#findComment-948407 Share on other sites More sharing options...
Xtremer360 Posted October 31, 2009 Author Share Posted October 31, 2009 function returnmain() { print "<h2 class=backstage><form method=POST><a href=\"#\" onclick=\"ajaxpage('mainscreen', 'content'); return false;\"><input type=submit value=\"Return to Main Menu\" class=button200></a></form></h2>\n"; print "</center></div>\n"; } Link to comment https://forums.phpfreaks.com/topic/179755-solved-submit-buttons-going-to-other-functions/#findComment-948414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.