Re: Post arguments in redirect possible?
| From: | MIKE YRABEDRA | Date: | Tue, 22 Apr 2003 21:09:51 +0000 |
| Subject: | Re: Post arguments in redirect possible? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144907@lists.php.net to get a copy of this message | ||
on 4/22/03 4:41 PM, Dan Joseph at djoseph@duhq.us wrote:
So this can't be done using the header("Location...) style function some
how?
> 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
>
+--------------------------------------------+
Mike Yrabedra (President)
323 Incorporated
Home of MacDock, MacAgent and MacSurfshop
+--------------------------------------------+
W: http://www.323inc.com/
P: 770.382.1195
F: 734.448.5164
E: mike@323inc.com
I: ichatmacdock
+--------------------------------------------+
"Whatever you do, work at it with all your heart,
as working for the Lord, not for men."
~Colossians 3:23 <{{{><
+--------------------------------------------+