Posted by Iván Sánchez Ortega on 02/10/07 17:46
andyhowlett@googlemail.com wrote:
> Alternatively I think this might work (and for text etc. too):
> <form action="file" method="post">
> <input type="text" name="blah" />
> </form>
> <span onclick="javascript:document.forms[0].submit();">image, text or
> whatever</span>
Don't *ever* suppose that the user has javascript enabled. Always provide an
alternative, non-javascript method for submitting the form, such as:
<form action="file" method="post">
<input type="text" name="blah" />
<noscript><input type='submit' /></noscript>
</form>
<span onclick="javascript:document.forms[0].submit();">image, text or
whatever</span>
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
El placer es el bien primero. Es el comienzo de toda preferencia y de
toda aversión. Es la ausencia del dolor en el cuerpo y la inquietud en
el alma.
-- Epicuro de Samos. (341-270 a.C.) Filósofo griego.
[Back to original message]
|