#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    70
    Rep Power
    15
    The situation is this. I am check a variable if it is zero or non zero using 'if' funtion. If the variable is zero then I would like a page to load. If the variable is non zero then I would like a different page to load. How do I do it.

  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    <?
    if ($somevar)
    {
    header("Location: somepage.php");
    exit;
    }
    header ("Location: differentpage.php");
    exit;
    ?>

Similar Threads

  1. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  2. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  3. PHP file upload script trouble
    By casbboy in forum PHP Development
    Replies: 9
    Last Post: February 5th, 2004, 07:42 PM
  4. Overwritng contents of Binary file in C
    By nmsudhan in forum C Programming
    Replies: 3
    Last Post: January 14th, 2004, 06:43 AM
  5. Delete file from browser cache
    By CEO in forum Perl Programming
    Replies: 2
    Last Post: January 12th, 2004, 06:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo