Mik Abe
Mik Abe

Reputation: 97

Remove question mark at the end of the URL

<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

Answers (2)

Nabi
Nabi

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

kannan
kannan

Reputation: 711

Use form method as post

<form action="sample.php"     method="post">
  <input type="submit">
  </form>

Upvotes: 4

Related Questions