Re: Insert data selected from drop down list into mySQL table

From: Date: Wed, 09 Jan 2002 15:04:14 +0000
Subject: Re: Insert data selected from drop down list into mySQL table
Groups: php.db 
Request: Send a blank email to php-db+get-15562@lists.php.net to get a copy of this message
George, When you use: <pre> <OPTION value="$prd">$prd</OPTION> </pre> Why not use the Product ID in the VALUE tag, and use the Product NAME between the OPTION /OPTION tags? That way, the VALUE is what is selected, and you can then use an SQL INSERT or UPDATE command to push that into the destination table. One less check against the database, right? -Peter =================================================================== EASY and FREE access to your email anywhere: http://Mailreader.com/ ===================================================================

« previous php.db (#15562) next »