this creates a dropdown list returning my Customer Names from customers, any help on how I can select a name from the list and post it to another PHP page passing that name to a query would be great.
thanks
James
<?php
$link = mysql_connect('*****') or die('Could not connect: ' . mysql_error());
mysql_select_db('***') or die('Could not select database');
$query = "select customerName from customers order by customerName";
$result = mysql_query($query) or die(mysql_error());
$dropdown = "<select name='users'>";
while($row = mysql_fetch_assoc($result)) {$dropdown .= "\r\n<option value='{$row['customerName']}'>{$row['customerName']}</option>";}
$dropdown .= "\r\n</select>";
echo $dropdown;
?>

