You are here: Re: [PHP] Basic PHP/HTML code question « PHP « IT news, forums, messages
Re: [PHP] Basic PHP/HTML code question

Posted by Michael Satterwhite on 10/20/70 11:16

Carlos Palomino wrote:
> Hi,
>
> I have been trying to write or find a pre-written script of a combo-box which would
> allow one to select a category from one drop-down list, then be given related options
> within a secondary list before clicking a submit button. Is there anyone who knows
> where I can find this or an easy way to accomplish this in PHP?
> Sorry if this is a basic question but I have only begun learning coding PHP so some
> items are foreign at this point. Thanks for your understanding and any assistance.

PHP executes on the server, so you have to send the form to the server.
The easiest way I know of to do this is to add

onChange="document.<formname>.submit();"

to the <select> tag (obviously, change <formname> to the name of the
form in question.

When the form reloads, use the selected item in the first combo box to
select the items to fill the second combo box.

---Michael

 

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

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