Reputation: 97
<form action="sample.php" method="get">
<input type="submit">
</form>
After click on submit, there will open a new page with URL: sample.php? I want to open this new page without question mark (?). Is there any way to do this? P.S. Firefox doesn't add this mark. Only chrome
Upvotes: 1
Views: 3641
Reputation: 774
You have to use POST
request, like this: method="post"
there is no solution else
<form action="sample.php" method="post">
<input type="submit">
</form>
Upvotes: 0
Reputation: 711
Use form method as post
<form action="sample.php" method="post">
<input type="submit">
</form>
Upvotes: 4