Forum Moderators: coopster
Any ideas?
Thanks!
One option to make it look pretty-much exactly like POST and work in almost the same way, but without the warnings.
Use GET but immediately read the GET array into a session variable and redirect to a page with no arguments in the URL:
i.e.
form.php -> <form method="GET" action="do.php"> blah blah...
do.php -> $_SESSION[gets]=$_GET; header("Location: show.php");
show.php -> $_POST=$_SESSION[gets];
In the example above, form.php will be submitted by GET, but the URL will never be visible (or if it is, not for more than a split second), the browser forwarding immediately to show.php with no arguments in the URL. Show.php will have the original $_GET array assigned to $_POST for you to use as usual.
Pressing 'back' from a page linked from show.php in this situation will go back to show.php (no warnings), if you press back from show.php you go straight to form.php (browsers skip the header-redirection from the history list)
The three parts can be all included into one script, or split in any way you want. I had them as separate files just to make it clearer.