[phplib] URLs and session variables (newbee) From: Ninjaman (ninjaman <email protected>)
Date: 05/22/01

I have some problems getting my head around how to create links that change
session variables.

I am trying to make an interface that changes depending on the "mode" I set
it in. I am using phpLibs sessions and templates so far.

A string to the template might look like this:
$my_url = $sess->self_url();
"<A href=\"$my_url?mode=result\">Klick here for a new mode</A>"

I then have a switch structure that calls to different items to be displayed
In different modes.

The ?mode=result part is my attempt to make a self url chande a variable. I
don't know if this is the way to go or not. And if so, I don't know how to
make that variable a part of my session when the page reloads.

I want self-pointing links that chande the session variable mode.

Can anyone shed some light on this for me.

"Making ugly simple php-scripts is no problem. It is making beautiful
php-applications that demand skills I donät yet have" /I said this

/Ninjaman

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