RE: [PHP] Post arguments in redirect possible?
| From: | Dan Joseph | Date: | Tue, 22 Apr 2003 20:41:24 +0000 |
| Subject: | RE: [PHP] Post arguments in redirect possible? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144904@lists.php.net to get a copy of this message | ||
Hi,
One method:
echo '<form action=payment3.php method=post name=frmP2B>';
foreach ($_POST as $a => $b) {
echo '<input type=hidden name="' . $a . '" value="' . $b .
'">';
}
echo '<input type=hidden name=pmt_type value=ach>';
echo '
</form>
<script language="JavaScript">
document.frmP2B.submit();
</script>
';
This builds a form, then submits it with javascript.
-Dan Joseph