SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: if isset
-
Nov 19, 2000, 17:13 #1
- Join Date
- Jul 1999
- Location
- Powder Springs GA (Atlanta)
- Posts
- 1,238
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok if i have this:
if (isset($old)):
and is shows a page of Old stuff.
and the url looks like this
/stuff/things.php?old=
i want the URL that looks like this
/stuff/things.php?old=edit
or
/stuff/things.php?old=new
what php code do i need? do i do
if (isset($old=edit)):
or
if (isset($old=new)):
i'm so lost and i can't find any help in my PHP book.. manily cause it's at work, and i'm not.
-
Nov 19, 2000, 18:10 #2
- Join Date
- Apr 2000
- Location
- Waco, Texas.
- Posts
- 188
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try something like
if($old=="edit" | $old=="new")
{
code here
}
-
Nov 19, 2000, 18:16 #3
- Join Date
- Aug 2000
- Location
- San Diego, CA
- Posts
- 5,460
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Eric,
Give us a little more to work with, how is the variable $old being passed is it coming form another page, and if it how is it how is it being established, Is the variable $old not getting passed to the next page? What are you trying to accomplish?Please don't PM me with questions.
Use the forums, that is what they are here for.
Bookmarks