You are here: Re: newbie question « HTML « IT news, forums, messages
Re: newbie question

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

 

Navigation:

[Reply to this 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

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