Re: tough one
| From: | James Atkinson | Date: | Fri, 03 Nov 2000 17:14:19 +0000 |
| Subject: | Re: tough one | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23603@lists.php.net to get a copy of this message | ||
On Fri, 03 Nov 2000, Siim Einfeldt aka Itpunk wrote:
> I have a from, in it I have a drop down menu and lots of input
> fields. When I select something from the drop down menu, it starts a
> function, which gets information from the database according to the
> selection in drop-down and returns all the stuff as an array. Now I want
> the stuff taken from array to be dispalyed in proper input fields. Does
> anyone know how to do it? Myabe some little code and...only for the last
> par of it.
>
> ------------
> Siim Einfeldt
The only way to do this is with the help of Javascript. I did something similar
that when a user selects a record from the drop down box it fills in the data
on the page, I did it via an onChange even on the list box that submitted the
form to that page, then PHP took over and read the variables passed by the form
and filled in the page. PHP can't do it by itself because it has no knowledge
of what the browser is doing, its all Server Side :)
--
James Atkinson
-----------------------------------------------------------------
James Atkinson 100world
Technical Developer 512-1529 West 6th Avenue
phone: +1-604-637-8122 Vancouver, BC, V6J 1R1
fax: +1-604-742-1770 Canada
email: james.atkinson@100world.com http://www.100world.com
+---------------------------------------------------------------+
| This message may contain confidential and/or privileged |
| information. If you are not the addressee or authorized to |
| receive this for the addressee, you must not use, copy, |
| discolse or take any action based on this message or any |
| information herein. If you have received this message in |
| error, please advise the sender immediately by reply e-mail |
| and delete this message. Thank you for you cooperation |
+---------------------------------------------------------------+