SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: if isset

  1. #1
    SitePoint Wizard jonese's Avatar
    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.

  2. #2
    Non-Member
    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
    }

  3. #3
    Dumb PHP codin' cat
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •