Patrick Member |
# Posted: 1 May 2009 14:07
Hi,
I have the following problem:
When I submit using a standard button (<input type="submit" name="Submit" value="Submit">) I can retrieve the content from the textarea (e.g. 'textfield').
When I use a picture to submit the page (e.g. <a href="javascript:submit_form();"><img src="../save_icon.gif"></a>)
it doenst work at all. ('textfield' is empty)
Is there a reason why I cannot use a javascript function first before submitting?
thanks
Patrick
e.g. the function above could be something like
function submit_form()
{
// do some field checks first
form1.submit();
}
|