[PHPLIB] add_query From: Chad Cunningham (ccunning <email protected>)
Date: 04/02/00

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.