php - GET will not passed -


this question has answer here:

i have strange problem. parameters not passed.

<!doctype html> <html>     <body>         <?php         var_dump($_get);         var_dump($_post);         ?>         <form action="test.php?ds=1" method="get">                     <input type="text">                     <input type="submit">                 </form>     </body> </html> 

if method 'get' form jumps 'test.php' without params. not 'test.php?ds=1'... nothing passed. if change method 'post' form jump 'test.php?ds=1' still passes no input.

first, need give input name in order passed. best change "post" , add "ds" hidden input.

<form action="test.php" method="post">     <input type="text" name="foo">     <input type="submit">     <input type="hidden" name="ds" value="1"> </form> 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -