Hi,
In the PHP form for my company, they use an image button to submit the
form to some javascript for validation, then use the SUBMIT() to
submit the form. The code is this:
<TD class="topnav" bgcolor="#00FF0 0"><a
href="savedata. php" onclick="if ('preventDefaul t' in event)
{ event.preventDe fault(); }
else { event.returnVal ue = false; }
formvalidation( document.forms['Add_Data']);">SAVE DATA</
a></TD>
Now, they have changed the site and rather than using an image button,
they are using some CSS to use a position on the background to kick
off the submit process. The code is similar to above:
<div class="nextimg" >
<a id="nextlink" href="savedata. php" onclick="if
('preventDefaul t' in event) { event.preventDe fault(); } else
{ event.returnVal ue = false; }
formvalidation( document.forms['Add_Data']);"></a>
</div>
The problem is that whe it hits the SUBMIT() command, it gives an
'object expected' error.
Any help or thoughts? This is the way they want it, so this is what I
have to do. So, if anyone can help me work with this, I'd really
appreciate it.
Thank you,
John
In the PHP form for my company, they use an image button to submit the
form to some javascript for validation, then use the SUBMIT() to
submit the form. The code is this:
<TD class="topnav" bgcolor="#00FF0 0"><a
href="savedata. php" onclick="if ('preventDefaul t' in event)
{ event.preventDe fault(); }
else { event.returnVal ue = false; }
formvalidation( document.forms['Add_Data']);">SAVE DATA</
a></TD>
Now, they have changed the site and rather than using an image button,
they are using some CSS to use a position on the background to kick
off the submit process. The code is similar to above:
<div class="nextimg" >
<a id="nextlink" href="savedata. php" onclick="if
('preventDefaul t' in event) { event.preventDe fault(); } else
{ event.returnVal ue = false; }
formvalidation( document.forms['Add_Data']);"></a>
</div>
The problem is that whe it hits the SUBMIT() command, it gives an
'object expected' error.
Any help or thoughts? This is the way they want it, so this is what I
have to do. So, if anyone can help me work with this, I'd really
appreciate it.
Thank you,
John
Comment