2010-12-13 36 views
5

Tôi đã cố gắng html như thế này:

<form method="post"> 
    <select id="select" size="2 "> 
     <option value="3">test</option> 
     <option value="4">test2</option>      
    </select> 
    <button type="submit" value="execute"> 
</form> 

Làm thế nào để có được một giá trị 3 hoặc 4 trong bài mảng

$_POST['select'] 

?

Trả lời

23

Thêm thẻ tên ...

<select id="select" name="select" size="2 "> 
Các vấn đề liên quan