...

View Full Version : <a... submit



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

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

Best Regards

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

david_kw
01-05-2007, 09: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.

david_kw

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum