Re: HTML/PHP's static state problem.
| From: | PHP | Date: | Mon, 09 Jul 2001 16:46:21 +0000 |
| Subject: | Re: HTML/PHP's static state problem. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56969@lists.php.net to get a copy of this message | ||
As a matter of fact you can create dynamic comboboxes, but not with
soley PHP. Because PHP is server-side, it has no idea what the user has
selected on a form, etc. JavaScript, on the other hand, is client-side, so
it keeps track of what the user is doing.
I've done this very thing for a leasing company. I used PHP and MySQL
to create a series of arrays in Javascript. When the user clicked on a
value in the first combobox I used onClick to call a function which loaded
information into the second box.
----- Original Message -----
From: "Alexander Deruwe" <a@deruwe.be>
To: <php-general@lists.php.net>
Sent: Monday, July 09, 2001 12:17 PM
Subject: [PHP] HTML/PHP's static state problem.
> Hey all,
>
> I've run into a little problem:
> Take, for example, combobox A and combobox B. Suppose B's <option>s depend
on what is
> selected in A..
> Is it possible to update B according to what is selected in A?
>
> Thanks,
>
> Alexander 'ad' Deruwe
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com