Jump to content

[SOLVED] Submit buttons Going To Other Functions


Xtremer360

Recommended Posts

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";
}

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";
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.