[PHPLIB] Problem with "$sess->padd_query()" From: Milen A. Radev (milenr <email protected>)
Date: 03/31/00

Have anyone used this function from Session class add_query() (or
padd_query())?
I made a site without knowing about its existence. I use cookies in my
browser.
I used the following expression: <a href="<? $sess->purl("/?tologout=yes")
?>">Log-Out</a>
And I got the following URI: http://www.mydomain.com/?tologout=yes
which is what I need.

Today I found it in PHPLib docs and I tried to use it. Because I want to
made my
site accessible with turned off cookies.
But when I rewrote the example above to the following:
<a href="<? $sess->purl("/").$sess->padd_query(array("tologout"=>"yes"))
?>">Log-Out</a>

I get this URI: http://www.mydomain.com/&tologout=yes
which (obviously) is incorrect.

May be I don't use it the right way?

Milen A. Radev

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

-
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.