You are here: Re: Posting form contents without having to push the button « PHP Programming Language « IT news, forums, messages
Re: Posting form contents without having to push the button

Posted by Schraalhans Keukenmeester on 05/09/07 18:08

At Wed, 09 May 2007 18:08:41 +0100, Johnny BeGood let his monkeys type:

> Hi All,
>
> Is there a way to post the contents of a form without having to click on the
> Submit button, i.e
>
> <form method="post" action="http://www.whereever.com/ProcessTheData.php">
> <INPUT name="Field1" type="text">
> <INPUT name="Field2" type="text">
> <INPUT name="Field3" type="text">
> <INPUT name="EsendexRecipient" type="text">
> <TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
> <input type="submit" value="Submit">
> </form>
>
> Can it be done as follows, are am I going to end up red faced again?
>
> http://www.whereever.com/ProcessTheData.php?A=Field1&B=Field2. . . . .
>
> Any help gratefully accepted
>
> Cheers

No reason to go red faced.

Using Javascript you could send the data to a script once a given field or
number of fields contain values. Why on earth you would want to use a form
in this manner is beyond me. Ask in Javascript groups how to.

If you want the form to be interactive (e.g. the form changes
following a certain choice, or a form field has code completion or
hinting) you could have a look at an AJAX solution. This (it's not
a product but a concept) combines javascript, xml and server-side
scripting to modify part of a page in your browser without having to
reload the complete page first)

AJAX is an acronym for Asynchronous Java And XML.
HTH

Sh

 

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

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