PDA

View Full Version : form



Maddog
07-20-2005, 02:57 PM
Hi try to get script to work where it check Required field(s) validation.

<FORM NAME=FEEDBACK METHOD=POST ACTION="FEEDBACK.php" >

This action the php script, find no problem, the bit I am stuck on is I need to add the following

<form name="FEEDBACk" onsubmit="return formCheck(this);">

Have added

<FORM NAME=FEEDBACK METHOD=POST ACTION="FEEDBACK.php" onsubmit="return formCheck(this);">

Doesn't matter where I put the onsubmit part doesn't work

Any help pls

Pablo
07-20-2005, 04:39 PM
Here's how you do it:
1. Open the object HTML of the form.
2. Before tag code:
<SCRIPT language="JAVASCRIPT">
function formCheck(theForm)
{
alert("BlueVoda is Cool!");
return true;
}
</SCRIPT>
3. Inside tag code:
onsubmit="javascript:return formCheck(this);"

Maddog
07-20-2005, 04:48 PM
thank you Pablo

said it before...you rock

Pablo
07-20-2005, 06:24 PM
well, they do not give these jobs to monkeys ;)