Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having trouble passing variable..

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Joined
Nov 23, 2003
Messages
249
Location
US
Ok here goes,

I am writing a webmail script. The scripts grabs the headers off of the server and creates texts and makes them links. These links tell another script which message the user wants to view.
I am submitting this through a _GET call.
So the link looks like this:

php/mail/view.php/item=4

However, in my page it shows up with the Session id which causes a message errror:
'php/mail/view.php?item=4&PHPSESSID=85bf22dda9bd01df798cb5688fc680e9

How do I get the code not to print the session id with the link?

Here is part of my code:
<a href=&quot;/php/mail/view.php?<? echo &quot;item=$x&quot;;?>&quot;>

Am I doing this wrong?

Thanks,
Ron
 
perhaps use
ini_alter(&quot;session.use_trans_sid&quot;,0);

first. but I still have the problem with the sessionid the first time a page is loaded in explorer. after a reload or going to another page they are gone
 
Hello, I believe I figured it out.

Instead of just echoing the variable I echoed the entire address and it worked.

Thanks!
 
in that case I will also try that :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top