HTML form not working as expected -


i have form in navigation bar. when type , click enter, obtain page of url /html/sphider/search.php , not /html/sphider/search.php?query=something&search=1 should have.

  <form class="navbar-form navbar-right" action="/html/sphider/search.php" method="post">         <input type="text" name="query" class="form-control" placeholder="search...">         <input type="image" src="../images/search.png" name="btn" alt="search">         <input type="hidden" name="search" value="1">       </form> 

does know why parameters not passed correctly search page?

you sending post request, not request. post sends data transparently through, while sends data using url noted in question. set method="get"

<form class="navbar-form navbar-right" action="/html/sphider/search.php" method="get"> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -