I've got a form with a text entry list allowing the visitor to select more
than one entry. The multiple entries are passed in the URL properly (see
below) but the QUERY is only using the last one listed. What's up?
URL being passed...
http://www.cancerreallysucks.org/RobesonWeb/robeson1searchB.php? manufacturer=JUKI&manufacturer=REECE&manufacturer=WELDTRON&Submit=Submi t
The problem is that $manufacture (or $_GET['manufacture']) is a scalar variable, meaning it can only have a single value. The last value assigned to it (WELDTRON) will override the others. Turn manufacture into an array (by making the HTML form input name "manufacture[]") and you'll be good to go.
Larry
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php