You are here: Re: php/dynamic form problem « PHP Programming Language « IT news, forums, messages
Re: php/dynamic form problem

Posted by Paul Furman on 03/17/07 15:09

drblitzkrieg@gmail.com wrote:

> Hi, I have a page with 2 drop-down menus. The task is, when you select
> 1 menu, your selection then changes the options available in the
> other. This data happens to be drawn from a mysql database, so I
> wouldn't think that it could be done purely in Javascript, but rather
> a combination of PHP generating some JS code. Thing is, I don't even
> see how to change a set of menu options with JavaScript, only names
> and values of individual fields.
>
> Any hints and links to tutorials where the menu-changing part is
> explained would be appreciated.

I think you just run a tiny script from the <option> onmouseclick which
reloads the form, then when the form reloads, php sees the option value
has been set & formats the second option list.

 

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

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