Forum Moderators: open
or
<a href="#" onclick="document.forms[0].submit()">Submit</a>
I think the parentNode thingy is right (provided the link is owned directly by the form) but javascript isn't really my thing.
Using an image might be better - doesn't need javascript. But I can't quite remember how that goes. It's something like this
<input type="img" src="url"> but I've never used it.
Kaled.
I'm using
<a href="#" onclick="document['formname'].submit()">Submit</a>
I tried these and they don't work:
- <a href="#" onclick="if (validateadvice) document['course_advice'].submit();">Click</a>
- <a href="#" onclick="if (validateadvice) form.submit();">Click</a>
NOTES
I put: document['course_advice'] because there is another form on the page which submitted with my earlier attempts.
I'm using IE.