View Full Version : <a... submit

01-05-2007, 12:58 PM
Hi friends.

I have an stupid question... How I can submit a form using a link(<a href...>submit</a>?

Best Regards

01-05-2007, 02:03 PM
<a href="#" onClick="document.formname.submit();">

01-05-2007, 08:28 PM
Just an additional note. Depending what your action is for the submit (like it if is a javascript call) you might need to return false too like

<a href="#" onClick="document.formname.submit(); return(false);">

Not a huge deal probably since it would just append '#' to the end of your url, but I figured I'd point it out.


01-05-2007, 09:43 PM
thank you! :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum