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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    306
    Thanks
    24
    Thanked 0 Times in 0 Posts

    get a varibal value from url?

    Hi;
    I'd like to ask you how i get a varibal value from url.

    the url is "http://mysite.com/country/Category.php?page=1/"

    i want to get the page value.

    i tried the following, it does not work.

    echo $_GET["page"];
    echo $_POST["page"];
    echo $_REQUEST["page"];


    could anyone tell me hoe to get the value of page, please.

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    echo $_GET["page"]; will work if you remove the trailing slash.


  •  

    Posting Permissions

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