Fwd: [PHP-DB] Data from a pull down menu
| From: | Joseph Crawford | Date: | Fri, 10 Dec 2004 21:00:51 +0000 |
| Subject: | Fwd: [PHP-DB] Data from a pull down menu | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37666@lists.php.net to get a copy of this message | ||
---------- Forwarded message ----------
From: Joseph Crawford <codebowl@gmail.com>
Date: Fri, 10 Dec 2004 16:00:33 -0500
Subject: Re: [PHP-DB] Data from a pull down menu
To: davidson@aero.und.edu
well are you looking for an automatic page refresh when a name is
selected? If so you need to look into javascript for some help. If
you have a go button or something like that what i would do is make
the drop down use the person's id and name such as
<select name="person">
<option value="3">Joe Crawford</option>
</select>
when the form is posted the value of $_POST['person'] will be 3, i
would use that to query the database and display any intormation that
i needed displayed.
--
Joseph Crawford Jr.
Codebowl Solutions
codebowl@gmail.com
--
Joseph Crawford Jr.
Codebowl Solutions
codebowl@gmail.com
For a GMail account
contact me OFF-LIST