Heim >Backend-Entwicklung >PHP-Tutorial >PHP跳转菜单读取值有关问题

PHP跳转菜单读取值有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 10:43:44773Durchsuche

PHP跳转菜单读取值问题
我把的值的方法呢?

------解决方案--------------------
select返回的就只指定的值。是不是select的name用加了[]

PHP code
 <?php if(isset($_POST['abc'])){var_dump($_POST['abc']);var_dump($_POST);}else  { echo ('<form action="'.$_SERVER['PHP_SELF'].'" method="post"> <select name="abc">    <option value="1">1</option>    <option value="2">2</option>    <option value="3">3</option> </select><input type="submit" value="submit">');}?><br><font color="#e78608">------解决方案--------------------</font><br>你是怎么写的代码?<br><font color="#e78608">------解决方案--------------------</font><br>用js就能获取<br><font color="#e78608">------解决方案--------------------</font><br>两次foreach<div class="clear">
                 
              
              
        
            </div>

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn