Re: [PHPLIB] add_query From: Jeroen Laarhoven (jeroen <email protected>)
Date: 04/03/00

Because I also run into problems with the standard session class handling of
GET params, I build a class for manupulating URL's.
Making things possible like adding GETs, POSTs (as GETs), removing param(s),
replacing a param value(s) etc..

However it is still 'under development', I 'do' a bit when needed, but most
of it seems to work fine.

If people are interested I can post the code.

Greetings
Jeroen.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Jeroen Laarhoven, Zwolle, Netherlands
email: jeroen <email protected>
www: http://jeroen.polder.net
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

----- Original Message -----
From: Chad Cunningham <ccunning <email protected>>
To: <phplib <email protected>>
Sent: maandag 3 april 2000 3:16
Subject: [PHPLIB] add_query

>
> It seems to me that the $sess->add_query function is a bit flawed. Assume
> for example I use it as
>
> $sess->purl("someotherpage.php") . $sess->padd_query(array("var" =>
> "value"));
>
> on a page that is called with page.php?blah=something my url will then
> look like
>
> someotherpage.php&var=value
>
> because I have a querystring set. I assume this is done so that
> $sess->pself_url works with the add query. Wouldn't it be better to have
> the self_url functon strip off the get parameters, and make the
> add_query function start with a ? seperator always? Most of the time you
> probably won't want to call the same url with the same get parameters
> anyone, and if you do you could just use the add_query.
>
> --
>
> Chad Cunningham
> ccunning <email protected>
>
> Only 170 days until RSA Patent expiration!
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
>
>

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.