[Javascript] Form submission problem

richf at ukonline.co.uk richf at ukonline.co.uk
Tue Aug 17 04:59:18 CDT 2004


Hi all,

I am using the following code to try and give a text link to submit a form. I am
sure I have done this before but it is not working ! 

<a href="javascript:document.errorform.submit();">Fill in missing information</a>
<form name="errorform" method="post"
action="show_survey.php?survey=1&authority=2&page=1">
<input type="hidden" name="2" value="2" />
<input type="submit" name="submit" value="fill in missing information" />
</form>


Any ideas why ? I get a 

Error: document.errorform.submit is not a function
Source File: javascript:document.errorform.submit();
Line: 1

Thanks,

Richard

----------------------------------------------
This mail sent through http://www.ukonline.net



More information about the Javascript mailing list