Replace the last seven lines of the code block in contact.php to the following:
PHP Code:
// It is better to use a full url location for a header redirect $insertGoTo = 'http://www.domain.com/sent.php'; $params = array(); foreach ($_POST AS $key => $value) $params[$key] = urlencode($value); header('Location: ' . $insertGoTo . '?' . implode('&', $params));
However, the GET parameters are limited in number of charactures (I think its 256 chars), so it may cutoff some information if its too long.
Then change all the $_POST to $_GET in the sent.php script (or even $_REQUEST will work).
This will solve your immediate problem, but why don't you just go ahead and add the sent.php script using an include, and then redirect the user to a confirmation page. That way the process won't require to rediect the page needing to worry about passing vars.
If you want to apply the vars to the next page, you can also pass the insert_id of the SQL row created and read that info.
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|