Header() POSTed variables
Posted: Mon Nov 03, 2003 7:23 pm
This is more of a curiosity question than anything but I was wondering if it is possible to force variables to be POSTed from PHP?
An example might be if the index.php page of your site was accessed and you wanted to send the user to page X with a variable, but send along a POST variable with the redirecting instead of a GET variable.
Another example might be if someone attempted to log-in to their account but the username or password was invalid. PHP would the bounce the user back to the page they came from with the error message variable as POST and not tagged onto the end of the URI with GET.
I'm not too sure if this can be done with header() or not... or if it can be done at all.
An example might be if the index.php page of your site was accessed and you wanted to send the user to page X with a variable, but send along a POST variable with the redirecting instead of a GET variable.
Another example might be if someone attempted to log-in to their account but the username or password was invalid. PHP would the bounce the user back to the page they came from with the error message variable as POST and not tagged onto the end of the URI with GET.
I'm not too sure if this can be done with header() or not... or if it can be done at all.