Revision fbdeee60-1e1d-4b56-b019-635576cacf1b - Stack Overflow

try this

 <form method="post" action="check.php">
 <select name="website_string"> 
 <option value="" selected="selected"></option>
 <option VALUE="abc"> ABC</option>
 <option VALUE="def"> def</option>
 <option VALUE="hij"> hij</option> 
 </select>
 <INPUT TYPE="submit" name="submit" />
 </form>


Both your select control and your submit button had the same `name` attribute, so the last one used was the submit button when you clicked it. All other syntax errors aside.

check.php

 <?php
 echo $_POST['website_string'];
 ?>

AltStyle によって変換されたページ (->オリジナル) /