Get The value of text Field while form submit in php
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.
精彩评论