Re: Need HOWTO on field-update code.
| From: | Lindsay Adams | Date: | Thu, 12 Apr 2001 18:24:45 +0000 |
| Subject: | Re: Need HOWTO on field-update code. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48351@lists.php.net to get a copy of this message | ||
php is server side only
so you are going to have to use javascript.
You can have php build an array, or two in javascript so that your menu
canchange.
checkout hotscripts.com, resourceindex.com, devshed.com,
http://wsabstract.com/
to name a few.
On 4/12/01 11:14 AM, "Erin Quick-Laughlin" <equick-laughlin@rrpartners.com>
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
>
>
>