1){$sql="SELECT name,id FROM student where sex='$tp'";} else{$sql="SELECT name,id FROM student";} echo $sql; echo "
"; echo "
"; echo "";// Closing of list box echo " Type Male Female
"; ?>
Back to Dynamic populating the drop down with period button tutorial   |  PHP SQL HTML free tutorials and scripts