Re: Need HOWTO on field-update code.
| From: | Philip Olson | Date: | Thu, 12 Apr 2001 18:45:25 +0000 |
| Subject: | Re: Need HOWTO on field-update code. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48352@lists.php.net to get a copy of this message | ||
Check out these two tutorials, might help :
chainedSelectors: A Better Way to Drop-down a PHP List :
--------------------------------------------------------
http://zend.com/zend/tut/drop-down.php
Loading JavaScript Arrays with MySQL Data :
--------------------------------------------------------
http://devshed.com/Server_Side/MySQL/JS_Arrays/
regards,
philip
On Thu, 12 Apr 2001, Erin Quick-Laughlin wrote:
> Can PHP update a second field on the form, based on the contents chosen
> from the first field (I'm thinking of JavaScript's function) ?
>
> I'm pulling a list of id,name,email from MySQL and displaying name for
> the first field. After the user picks it, I want the appropriate email
> address to show up
> in the second field.
>
> 1. I want to do this without sending a second select request to the
> server.
> 2. What PHP functions should I be looking at to build this?
> 3. If not PHP, where can I find the appropriate JavaScript examples?
>
> Thanks,
> Eman
>
>
>
>
> --
> 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
>