You are here: Re: Drop down menu selection activation « PHP Programming Language « IT news, forums, messages
Re: Drop down menu selection activation

Posted by Jerry Stuckle on 02/06/06 18:38

E.T. Grey wrote:
>
>
> David Haynes wrote:
>
>> E.T. Grey wrote:
>>
>>> I have a form that is populated with a drop down list and a list box.
>>> I want to be able to automatically populate the list box, whenever a
>>> user selects a new item from the drop down list.
>>>
>>> Is there a way of doing this as soon as a new item is selected from
>>> the drop down box? (I'm trying to mimic a rich client interface in a
>>> web browser).
>>>
>> google javascript cascade select
>>
>> -david-
>>
>
> My bad (further clarification required). Is this possible without using
> javascript? - i.e. a PHP only solution?
>
> I had to pick up PHP in the last week (I'm from a C/C++/Java background)
> and do not really relish the thought of having to learn yet another
> 'language' for my project ;-)
>

David,

No, there's no way to do it automatically without javascript. PHP is
server-side. It generates the HTML which is sent to the browser, but
then it's work is done.

What you need is something which runs on the browser side to submit your
form back to the server when they user makes a selection - hence,
javascript.

Also, ensure you have an alternate means (i.e. a submit button) for
those who have javascript turned off.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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