I have the following code below in my index.php. A form uses it like this:
Code:
<form action="" method="post" onsubmit="return check_submit(this);">
So basicly i want to display that "Please wait ..." on form submit and immediately after the form has processed itīs POST, return also actual form output. Issue is the following: It only returns that "Please wait ..." text but no actual results from that form. I am very bad with
JS however i would prishiate if someone could assist me to get actual form output too after that "Please wait..." text.
Code:
<script language="JavaScript" type="text/javascript">
<!--
var submitted = false;
function check_submit(theform)
{
if (submitted) return false;
theform.submit.disabled=true;
theform.submit.value="Please Wait...";
return (submitted = true);
}
//-->
</script>