Re: more than one php

From: Date: Wed, 09 Apr 2003 14:07:31 +0000
Subject: Re: more than one php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143081@lists.php.net to get a copy of this message
[QUOTE]-------------------- The only drawback with this approach is that f1.php can't output anything [/QUOTE] Unless you make f1.php show stuff then wait for the user's input (might even be just a link) to submit a form wich saved the _REQUEST data... ciao Andrea Fastame Jon Haworth wrote:
Hi Diksha,
i wanted to know if it is possible to pass the contents of one form to more than one PHP scripts. something like this: echo"<form method=get action=\"f1.php\ action=\"f2.php\">
No, you can't do this - what you have to do is pass it to f1.php, which does its stuff and then redirects to f2.php: <?php // do something header ("Location: http://example.com/f2.php?foo=". $_GET['foo']); exit; ?> The only drawback with this approach is that f1.php can't output anything, otherwise the header won't get sent. It's also harder with POST than GET (but still possible). HTH Jon


« previous php.general (#143081) next »