Re: NEWB: Getting a form <select> to activate
From: Geoff Berrow (bl_at_ckdog.co.uk)
Date: 10/30/03
- Next message: Andi Gutmans: "PHP 5.0.0 Beta 2 released!"
- Previous message: Chris Shiflett: "Re: [PHP] Problems with remote include"
- In reply to: Cal: "NEWB: Getting a form <select> to activate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 20:22:19 +0000
I noticed that Message-ID:
<21f43216.0310301044.2a7efa3d@posting.google.com> from Cal contained the
following:
><form name="form3" method="get" action="bom.php">Display a BOM
><SELECT> name="partnum"
>
><?PHP
> while ($row = mysql_fetch_array($results)) {
> echo "<OPTION>" . $row[PartNumber];
> }
>?>
></SELECT></form>
>
>Which nicely populates my combo, but how do I get it to activate? I
>think I need to add onchange=<some php here>, but what? I want to make
>it call bom.php with the ?partnum= parameter set to the contents of
>the <select>
onChange will require JavaScript. Why not use a submit button?
-- Geoff Berrow It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/
- Next message: Andi Gutmans: "PHP 5.0.0 Beta 2 released!"
- Previous message: Chris Shiflett: "Re: [PHP] Problems with remote include"
- In reply to: Cal: "NEWB: Getting a form <select> to activate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]