Posted by Toby Inkster on 08/15/05 09:30
siliconmike wrote:
> How can I post form data when user clicks on any of these links ? Do I
> need Javascript, or is this possible by regular html ?
It *can* be done with Javascript:
<form id="myform" method="GET" action="handler.cgi">
....
<a href="flibble.html" onclick="document.getElementById('myform').submit">
....
</form>
But that is probably a *very* bad idea. People expect to submit a form by
clicking a button -- not by following a link. If you don't use a button to
submit the form, then you may confuse your users.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|