Re: [PHP] convert array to HTML GET request

2005-10-03 Thread hope
on 2nd page you can use global $HTTP_POST_VARS; print_r($HTTP_POST_VARS); /// u can use $HTTP_GET_VARS for GET method regards hope adriano ghezzi wrote: if i understand well you need to get an array from html post if you use the same name for your html fields you automatically have a

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread adriano ghezzi
if i understand well you need to get an array from html post if you use the same name for your html fields you automatically have an array in $_POST eg input type=text name=myfield value="field_1" input type=text name=myfield value="field_2" you'll get the array ar_myfield = $_POS['myfield']

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread Chris
PHP 5 has the http_build_query function which does exactly what you want: http://www.php.net/http_build_query Chris Martin van den Berg wrote: Newbe question: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. Thanks

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread M. Sokolewicz
Jasper Bryant-Greene wrote: Martin van den Berg wrote: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. HTTP GET and POST requests are formatted the same, just sent in different ways. I don't know if there's a func

Re: [PHP] convert array to HTML GET request

2005-10-02 Thread Jasper Bryant-Greene
Martin van den Berg wrote: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. HTTP GET and POST requests are formatted the same, just sent in different ways. I don't know if there's a function; I'd just use: 'oranges

[PHP] convert array to HTML GET request

2005-10-02 Thread Martin van den Berg
Newbe question: How does one convert an array into a HTML GET request easely? Are there any standard functions? Same for HTML POST requests. Thanks, Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php