Urgent: Please Help
Hi all,
i am using an HTML form to send data to a servlet class. Now the problem is if i send the data using a submit button then it works.
But i want to use <A HREF= so that if the user just click the link then it will send the data to servlet.
But when i ckick the ><A HREF it does nothing and at the bottom left corner of the IE a message comes "Error on page"
Now my form code is
><form name="myform" action="/Final/abcd.example" method=post>
<input type=hidden name='file_name' value="<%= dbfile_name%>"/>
<input type=hidden name='file_path' value="<%= dbfile_path%>"/>
<A href="javascript:submitform()"><%= dbfile_name%></A>
</form>
and my javascript function is:
function submitform()
{
document.myform.submit();
}
please help me i am stuck with it.
Thanks

