Hi I have created a drop down combo box on a form using a mysql query of 3 tables and this is working fine, now I want to perform another query on the datasabase when I select an item in the drop down combo with this running a query on the database and returning the values required to populate the form with additional data in defined fields. below is how far I have got to date....
$query3 = "SELECT customers.id, customers.email, customers_customfields.customer_id, customers_customfields.field_value, orders.sign_date, orders.sub_id, orders.domain_name, orders.cust_status
FROM customers, customers_customfields, customers_orders, orders
WHERE customers_orders.order_id = orders.sub_id
AND customers.id = customers_orders.customer_id
AND customers.id = customers_customfields.customer_id
AND customers_customfields.field_id = 1";
$result = mysql_query ($query3);
echo "<select name=orders value='Select from the list provided '>";
while($drop=mysql_fetch_array($result)){
//data stored in $drop
echo "<option value=$drop[id]>$drop[sub_id] $drop[id] $drop[field_value] $drop[sign_date] $drop[domain_name] $drop[cust_status]</option>";
}
echo "</select>";