if we not set method attribute on <form> and then submit then it will use method GET
<form>
<input type="submit" name="foo" value="test" />
</form>
How to change the default method into POST if we not set the method attribute?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no common way to avoid that. If you want to avoid it really bad, you might want to use a templating language or so that then compiles to HTML.