Results 1 to 3 of 3

Thread: PHP URL Info

  1. #1
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default PHP URL Info

    Ok, I can't really think how you'd word this, but thats the best I can do.

    Problem:
    Ok, so you have a url whatever.com/something.php?page=1 I know you can do this, but what code do you use to do it? It confuses me, because I don't understand 1: how do you use like a set, you know 1, 2, 3, etc. 2: if you must use the if() how would you collect that data? $_POST ? Google has been failing me alot...

    Thanks again guys,
    Tim

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    In that case, $_GET['page'] is '1'.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Thanks Twey. I'm learning PHP alot faster than JavaScript, its much easier. xD.

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
  •