Submiting a form via href

by "Derek Lavine" <derek(at)realware.com.au>

 Date:  Thu, 31 Aug 2000 17:58:35 +1000
 To:  <hwg-languages(at)hwg.org>
 References:  hotmail
  todo: View Thread, Original
Hi people of HWG

Is it possible to submit a form using a href e.g.

<form name=test" action="myaction.cfm" method="post">

<input type="text" name="field1" value="">
<input type="text" name="field2" value="">

<a href="submit('sometext to indicate what link was clicked">Click this</a>
<a href="submit('sometext to indicate another link was clicked">Click
that</a>

</form>

In fact is it possible to call any function I have defined from a href and
then from there actually sumbit the for and of course all the form fields to
the action associated with the form.

If this cannot be done what is the best way to do this with out using those
ugly gray submit buttons. If the only other approach is to use a graphic and
the <input ...> tag I will do that but I was hopping to avoid the graphic if
possible.

Thanks for your help and suggestions

Derek

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA