Jump to content

onClick submiting


fighnight

Recommended Posts

try this

 

<form method="post" action="map.php" name="submit">

<input type="hidden" name="submitform" value="submit">
<input type="submit" name="submitButton" value="Login" onClick="this.disabled = 'true'; this.value = 'Loading..'; this.form.submit();"></form>

 

and in your php code check for

 

if (isset($_POST['submitform'])) {

 

that should work

Link to comment
https://forums.phpfreaks.com/topic/81456-onclick-submiting/#findComment-413544
Share on other sites

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.