Re: Javascript and $_POST

From: Date: Thu, 08 Feb 2007 15:21:02 +0000
Subject: Re: Javascript and $_POST
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-248580@lists.php.net to get a copy of this message
You guys are going to kill me! I found my problem....and it's one of those "What the hell were you thinking" issues. Within my form was a "button" but I stupidly made it a submit when I created it and therefore the javascript check for submit was finding my button first and dumping the error. So, in summary: function checkForm( ) { document.FormName.submit(); } *DOES *work and will pass your $_POST values between pages as long as you don't make a novice mistake like I did. On 2/8/07, Jon Anderson <jon@gamingsolutions.ca> wrote:
Jon Anderson wrote: ...
     item.focus();
} ** alert(onError); **return(false);* *} ... Sorry about the "*"s everywhere (there aren't supposed to be any). I pasted the code in, and Thunderbird thought it was supposed to be bold for some reason, then converted the bold text to text with "*"s everywhere while sending as plain-text only. jon


« previous php.general (#248580) next »