Submit Question

Giganews Newsgroups
Subject: Submit Question
Posted by:  mt…@mtekusa.com
Date: Sat, 22 Mar 2008

Hi,

Another issue.  I'm triny to submit a form and have it run some
Javascript validation code before continuing.  The button is an HTML
button.  This is my code:

a href="javascript:document.Add_Data.action =
'savedata.php';document.Add_Data.submit();">Save Data</a>

The name of the form is Add_Data.  My FORM tag looks like this:

<FORM NAME='Add_Data' METHOD=POST onsubmit="return
formvalidation(this)">

Any idea why that would not work??

Replies