View Single Post
Old 07-23-2004, 08:41 AM  
chodadog
Confirmed User
 
Join Date: Apr 2002
Posts: 9,736
Need some minor PHP help

Okay, i'm going to be sending people to a webpage with an "s" variable.

page.php?s=1

Now, on that page, i need another linking code to do some kind of "if" thing depending on what the value of s is.

So, if s=1 in the URL to the page they user is currently on, then s in the link i'm creating will be, say, 12. And if s=2, then s in the link on the page will be 14.

Make sense? Probably not!
__________________
26 + 6 = 1
chodadog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote