|
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
==================
[Back to original message]
|