<html> <head> <meta charset="utf-8"> <title>Test Celect Contry</title> </head> <body> <?php include('./inc.php'); ?> <form action="<?=$_SERVER['PHP_SELF'];?>" method="post"> <p>เลือกประเทศ ภาษาไทย : <select name="TH" required> <?php $thSQL="SELECT * FROM tbl_country"; $thQuery=mysqli_query($connec, $thSQL); while($thARR=mysqli_fetch_array($thQuery)){ echo("<option value='$thARR[ct_code]'>$thARR[ct_nameTHA]</option>"); } ?> </select> </p> <p>เลือกประเทศ Englist : <select name=EN required> <?php $enSQL="SELECT * FROM tbl_country"; $enQuery=mysqli_query($connec, $enSQL); while($thARR=mysqli_fetch_array($enQuery)){ echo("<option value='$thARR[ct_code]'>$thARR[ct_nameENG]</option>"); } ?> </select> </p> </form> </body> </html>