开发者

Get The value of text Field while form submit in php

开发者 https://www.devze.com 2022-12-30 01:27 出处:网络
how to get the value of input box while submitting the form in php i need the url like this www.example.com/te/?a=test&firstname=blabla

how to get the value of input box while submitting the form in php

i need the url like this www.example.com/te/?a=test&firstname=blabla

<f开发者_如何转开发orm action="te/?a=test" method="post">

<input type="text" name="firstname" />


<input type="submit" name="button" />

</form> 


<form action="te/" method="get">
  <input type="hidden" name="a" value="test" />
  <input type="text" name="firstname" />
  <input type="submit" name="button" />
</form> 


Change your form method to be "get" instead.

That'll give you the results you're expecting.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号