Reply to Re: Alternative form submission

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация