Submiting two forms at the same time

From: Date: Fri, 27 Apr 2001 04:32:22 +0000
Subject: Submiting two forms at the same time
Groups: php.general 
Request: Send a blank email to php-general+get-50564@lists.php.net to get a copy of this message
Hello, Is there any way I can send two forms at one time? What I want to do is to have two forms with different method (GET and POST), and then send them at one time, so that in the next page I get both $HTTP_POST_VARS and $HTTP_GET_VARS. To illustrate this:
    <FORM ACTION=3D"bla.php" METHOD=3D"post">
    <INPUT TYPE=3D"hidden" NAME=3D"foo" VALUE=3D"yahoo">
    </FORM>
<FORM ACTION=3D"bla.php" METHOD=3D"GET"> <INPUT TYPE=3D"hidden" NAME=3D"bar" VALUE=3D"yehaa"> </FORM> I want so that after submiting these forms, somehow, in the bla.php I=20 have $HTTP_POST_VARS["foo"] = "yahoo" $HTTP_GET_VARS["bar"] = "yehaa" at one time. Is this possible at all? Thanks in advance for any reply. Reuben D. Budiardja

« previous php.general (#50564) next »