View Single Post
  #1 (permalink)  
Old 10-19-09, 08:00 PM
GameFrame GameFrame is offline
Newbie Coder
 
Join Date: May 2009
Location: Finland
Posts: 35
Thanks: 0
Thanked 3 Times in 3 Posts
JavaScript form POST return issue

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>
__________________
NiX API - Stay protected. Multi-purpose API protection solution for webmasters.
nixapi.com

Last edited by End User; 10-20-09 at 09:58 AM. Reason: Removed mult. acronym tags
Reply With Quote