Reply to Re: form processing technique

Your name:

Reply:


Posted by Manuel Lemos on 04/27/07 16:23

Hello,

on 04/26/2007 10:44 PM Man-wai Chang said the following:
> <form name="frmTest" type="submit" method="post">
> <input type="textbox" name="txtA" size=10 value="">
> <select name="cboB" value="">
> <option value="1">1
> <option value="2">1
> </select>
> <input type="submit" name="cmdSave">
> </form>
>
> Normally when I click cmdSave, the form will be submitted, with cmdSave
> set.
>
> Now I need to open a popup for selecting a value into txtA and then
> submit the form without setting cmdSave, so that I could re-populate the
> options for cboB. How should I do it? I don't plan to use AJAX for the
> moment, but old techniques.

You can use the form.submit() function when the value is changed.

Now if you want to search or auto-complete a text value, you may want to
take a look at this forms generation and validation class that comes
with a plug-in exactly for that. Here is an example script in action:

http://www.meta-language.net/forms-examples.html?example=test_auto_complete

The class and this and other pĺug-ins are available here:

http://www.phpclasses.org/formsgeneration

Here you can watch tutorial video on this subject:

http://www.phpclasses.org/browse/video/1/package/1/section/plugin-auto-complete.html


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

[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

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