> How do I gather up all the variables in $_POST and attach them as a
> string after the question mark? Thanks.
this is untested:
$arr = array();
foreach($_POST as $key => $value) {
$arr[] = $key.'='.urlencode($value);
}
$URL = "https://example.com/script.asp?".implode('&',$arr);
header
Dumb question, sorry if it's a repeat. I will use PHP for a form with
error checking. When there are no errors I need to send all the
variables thru something like this:
$URL = "https://example.com/script.asp?First=Jim&Last=Smith";;
urlencode($URL);
header("Location: $URL\n");
How do I gather up
2 matches
Mail list logo