However, there are a few variables I need changed. For example, the people I'm sending it to need $rate_1m which is a mortgage rate but in $_POST there is $rate_1m1 (the whole number) and $rate_1m2 (the two numbers after the decimal). How do I get those two together and then discard the two numbers and only send $rate_1m? If that makes any sense.
Thanks.
Jeff

Hmmm, your question's a bit confusing. Do you want to push the second number (decimal) after the first number (int)? If so then just concatenate the values.


$_POST['rate_1m'] = $_POST['rate_1m1'] . $_POST['rate_1m2'];
unset($_POST['rate_1m1'], $_POST['rate_1m2'])

foreach($_POST as $key => $value) {
    $arr[] = $key.'='.urlencode($value);
}

$URL = "https://example.com/script.asp?".implode('&',$arr);
header("Location: $URL\n");

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to