PHP Classes

using GET variables

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  using GET variables  >  (Un) Subscribe thread alerts  
Subject:using GET variables
Summary:How to handle GET variables like POST ones
Messages:1
Author:Jerome
Date:2007-06-27 22:57:39
 

  1. using GET variables   Reply   Report abuse  
Picture of Jerome Jerome - 2007-06-27 22:57:39
Hello,

This class is working perfectly when working with POST request, however I was wondering how to manage variables when performing GET request ?

Do I have to manage it manually in the URL using something like this:

foreach( $gets AS $name => $value ){
$getValues .= urlencode( $name ) . "=" . urlencode( $value ) . '&';
}

Or is there any GET equivalent to the $arguments['PostValues'] that would be directly handled by the class ?

Thanks for your answer.

Manuel, Thanks for this great work !

Jerome