There are 2 reason why I think you want to do this...
1) The other page requires a POST
2) you want to hide the data.
I have pondered on this before. If I understand you correcly the cURL solution is nor right for this. This would be okay if you wanted to just send dome details off someplace else but if you want to take the user to th page, I don't think its want you want.
Javascript maybe the best (easiest option, if they don't have Javascript ( I know foks disable it because they dont trust others, but I dont trust people who disable it) they just have to submit again.
If the issue is hiding the post from the address bar, be carefull you aren't relying upon it for security, because often POSTED data can be falsified anyway.
If the page you were submitting to was your own, you could create a tempory database record.
I probly dont have to mention that if you wanted to post the data off again using GET, use header("Location: {$url}");die;
maybe even a touch of:
unset ($stuff);
foreach($HTTP_POST_VARS as $key => $value) {
if ($stuff) {
$stuff.='&';
}
else {
$stuff.='?';
}
$stuff.="{$key}=".urlencode($value);
}
header("Location: {$url}{$stuff}");
I've used the above plenty of times for things like logging formmail submissions, but I could really do with working something similar using POST to POST for things like credit card payment details intermin pages.
It must be possible, I did work it out to a certain extent using ncat tools but ran into limitaions with sending headers in using PHP. Perhaps cURL might help(??).