php - Display drowdown values after user has selected 3 option -
i have 3 drop downs want display whatever user select after he/she has selected function or scrpt must within script <?php $resource_names = mysql_query("select distinct name selections order id asc"); $names = array(); while($row = mysql_fetch_row($resource_names)){ $names[] = $row[0] } $resource_surnames = mysql_query("select distinct surname selections order id asc"); $surnames = array(); while($row = mysql_fetch_row($resource_surnames)){ $surnames[] = $row[0]; } $resource_emails = mysql_query("select distinct email selections order id asc"); $emails = array(); while($row = mysql_fetch_row($resource_emails)){ $emails[] = $row[0]; } if(count($emails) <= 0 || count($surnames) <= 0 || count($emails) <= 0){ echo 'no results have been found.'; } else { // display form echo '<form name="form" method="post" action="test.php">'; //names dropdown: