[Klone-users] GET/POST confused methods
thomas fossati
tho at koanlogic.com
Fri Apr 11 04:11:38 EDT 2008
Hi Mickael,
On Apr 10, 2008, at 11:25 AM, Mickael Auger wrote:
> GET and POST variables have the same name.
>
> By analogy, PHP, in the quest to recover the variables, there are
> several arrays ($_POST and $_GET), which are quite distinct.
> There is also the concatenation of these two arrays ($_REQUEST), I
> need to separate the GET and POST variables, regardless of the
> method of the form (as in the example above).
klone does not have this facility, you have only one VARS array.
Anyway a given resource/page can be invoked with one only access
method at a time, so you could use "switch (request_get_method(rq))"
to dispatch the intended variable semantics, aren't you ?
ciao, t.
More information about the klone-users
mailing list