on 9/23/00 7:38 AM, David B Brooks at [EMAIL PROTECTED] wrote:
> Anyone know of a way to have a link submit a form, insead of using an input
> tag? I'm relatively new to the tag based world of programming, and don't
> know if this is possible.
You need to use javascript.
Try this:
<a href="#" onClick="document.formname.submit();">Click here to submit the
form</a>
Note that you must give the form a name for this to work, like this:
<form name="formname" action="results.cfm" method="post">
<input type="hidden" value="value" name="formvalue">
</form>
Make sure the name of the form in your javascript matches the actual form
name. Names are case-sensitive.
HTH
Rob Keniger [EMAIL PROTECTED]
____________________________________________________________________________
big bang solutions
<http://www.bigbang.net.au> p +61 7 3311 2733 f +61 7 3311 2744
____________________________________________________________________________
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.