Quantcast
Channel: PHP – StuffThatSpins.com
Viewing all articles
Browse latest Browse all 31

remove “confirm form resubmission” with Google Chrome

$
0
0

so, do you get the annoying “confirm form resubmission” page when a user hits the back button or refresh using google chrome? simply change your form method from “post” to “get”.

if you can put all your values in the url use the “get” method instead of “post”

//remove post
<form action="index.php?load=SEARCH" method="post">

//use get
<form action="index.php?load=SEARCH" method="get">

voila, message gone!

 



Viewing all articles
Browse latest Browse all 31

Trending Articles