NEWB: Getting a form <select> to activate
From: Cal (cal_at_mssmanufacturing.com)
Date: 10/30/03
- Next message: Ryan A: "Re: [PHP] Echo issue RESOLVED!"
- Previous message: Mike Migurski: "Re: [PHP] removing all duplicate values from an array"
- Next in thread: Geoff Berrow: "Re: NEWB: Getting a form <select> to activate"
- Reply: Geoff Berrow: "Re: NEWB: Getting a form <select> to activate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Oct 2003 10:44:20 -0800
I'm using the following code:
<?PHP
$query = "SELECT DISTINCTROW Parts.ID, PartNumber, ParentID FROM
Parts, BOM_Entries WHERE Parts.ID = ParentID ORDER BY PartNumber" ;
$results = mysql_query($query, $link) or die("Could not complete
database query");
$num = mysql_num_rows($results);
?>
<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>
Thanks
- Next message: Ryan A: "Re: [PHP] Echo issue RESOLVED!"
- Previous message: Mike Migurski: "Re: [PHP] removing all duplicate values from an array"
- Next in thread: Geoff Berrow: "Re: NEWB: Getting a form <select> to activate"
- Reply: Geoff Berrow: "Re: NEWB: Getting a form <select> to activate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|