Results 1 to 5 of 5

Thread: Query String?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Query String?

    I've worked with PHP before, but never made a whole website using PHP. Now that I'm doing so, I just have to say that PHP is awesome
    Last edited by The Hobo; Apr 13th, 2002 at 10:21 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2

  3. #3

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Whoa, I was so excited I forgot my question.

    If I have this as my url: http://www.site.com/php.php?action=viewall how can I tell this in my code?

    So I can do:

    Code:
    if($action == 'viewall') {
      echo 'viewall it is...';
    }
    Thanks in advance.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4
    That's exactly what you do.

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    bah! I had "if ($action == 'view')" in my code.

    Thanks filburt!
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width