RE: [PHP] more than one php

From: Date: Thu, 10 Apr 2003 05:28:56 +0000
Subject: RE: [PHP] more than one php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143272@lists.php.net to get a copy of this message
Hi Just a thought here, could you not use JavaScript... call f1.php and in the onload event call f2.php in a new window. Not 100% on this as I am only just starting to play with JS ... Ross ¤-----Original Message----- ¤From: Jon Haworth [mailto:jon@laughing-buddha.net] ¤Sent: 09 April 2003 02:56 ¤To: php-general@lists.php.net ¤Subject: RE: [PHP] more than one php ¤ ¤ ¤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 ¤ ¤ ¤ ¤ ¤-- ¤PHP General Mailing List (http://www.php.net/) ¤To unsubscribe, visit: http://www.php.net/unsub.php ¤

« previous php.general (#143272) next »