select cannot use php to get the selected value without setting the option value in ie6/7/8. However, in ie9 or above, firefox, and chrome, the value can be obtained whether the value is set or not
For example:
<select name='select_name'> <option>1option> <option>2option> select> <select name='select_name'> <option value='1'>1 <option value='2'>2 select> 第一种情况用$_request['select_name] 在ie6/7/8取到的值为空 第二种情况用$_request['select_name] 在ie6/7/8可以取到值在其他游览器中则不受影响
The above has introduced the value problem of the option value in select in different browsers, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.