How to filter keyword from URL

Discussion in 'HTML & Website Design' started by euseo, Oct 20, 2010.

  1. #1
    Hi All

    I need few advice to filter keyword from URL.

    Keyword is coming from www.mywebsite.com?keyword=kw1

    So I need to get "kw1" from this url and to make report.

    Please give your advices.
     
    euseo, Oct 20, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    This is an example how you can do it using PHP:

    
    <?php
    list($key,$value) = explode("=",parse_url("www.mywebsite.com?keyword=kw1",PHP_URL_QUERY));
    echo($key." = ".$value);
    ?>
    
    PHP:
     
    s_ruben, Oct 20, 2010 IP