Re: [phplib] rewriting urls From: NickM (terado <email protected>)
Date: 07/01/00

Try like this:
href=\"".$sess->url("index.php".$sess->add_query(array("page"=>"admin")));

Nick

----- Original Message -----
From: "Marcin Mazurek" <mazek <email protected>>
To: <phplib <email protected>>
Sent: Saturday, July 01, 2000 10:53 PM
Subject: [phplib] rewriting urls

> Hi,
> I'm passing one variable with URL using sessions supported by cookies.
> I think I'm lost in how to print this URL, what I do is:
>
> href=\"".$sess->url("index.php").$sess->add_query(array("page"=>"admin")
>
> if the session mode is get, everything is thine bacuse this session I get
> "?" sign:
> index.php?my_sess=xyz&page=admin
> but in cookie mode, session is set by cookie adn url looks like:
> index.php&page=admin
>
> What is the correct way to use it, inted of enforcing not to use cookies?
> maz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>