RE: [PHP] convert hidden form to get url

From: Date: Mon, 20 Dec 2004 17:03:38 +0000
Subject: RE: [PHP] convert hidden form to get url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-204723@lists.php.net to get a copy of this message
Sorry for not been clear. The snippet of html is code I am getting dynamically using curl from another website. I want to then convert that html code into a url like http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY=27. Best Regards Martin -----Original Message----- From: Matt M. [mailto:h.dudeness@gmail.com] Sent: 20 December 2004 16:09 To: Martin Reeves Cc: php-general@lists.php.net Subject: Re: [PHP] convert hidden form to get url > Anyone got any suggestions on the best way to convert the snippet of > code below (which I'm dynamically collecting from another website) to > a get url (i.e. > > http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_DAY > =27 ) > > <form action="http://www.somewebsite.co.uk/Availability.cgi". > œ•0w«ôìÆ…iP¥ method="POST" > name="flightsForm" id="flightsForm"> > <input type="hidden" name="NUM_OF_ADTS" value="1"/> > <input > type="hidden" name="CABIN" value="E"/> <input > type="hidden" > name="B1_DAY" value="27"/> </form> not sure I understandd exactly what you want. If you want the variables to show up in the query string you could either change the form method to get or change the action to <form action="http://www.somewebsite.co.uk/Availability?NUM_OF_ADTS=1&CABIN=E&B1_D AY=27" method="POST" name="flightsForm" id="flightsForm"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#204723) next »