Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: strings

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts

    strings

    If I link to a page example.php and have the link as http://www.whatever.com/example.php?sort=alphabetical what should I put in the example.php to work out what 'sort' is ?

    Also is there a better way of doing it than that generally ?
    \o/

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There isnt really a better way of doing that. Thats pretty simple. To get the value sort, use:

    PHP Code:
    <?php

    $_GET
    ['sort']

    ?>
    Hope that helps...

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Thanks
    \o/


  •  

    Posting Permissions

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