ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

href in HTML

July 14, 2014 8:04am

Subscribe [2]
  • #1 / Jul 14, 2014 8:04am

    fnbhns

    22 posts

    Dear All,

    I am new in HTML / Codeigniter. Could you give me some idea about the following linking,

    What does it mean by P, Ob, Wm, Sb please….!!

    <pre><code>href=”?p=1&wm=list”
    href=”?p=1&ob=desc”
    ============================================
    <option value=”?p=1&sb=name” selected=”” >Name      
    <option value=”?p=1&sb=price_order” >Price
    <option value=”?p=1&wm=list” >Code        
    <pre><code>

  • #2 / Jul 18, 2014 10:03am

    Giraffentoast

    152 posts

    This is probably not the right place for this question. You better ask in some HTML or PHP forum (this is not the Codeigniter forum and your question is rather about web development basics than CI).

    Anyway: a link written like this

    <a href="http://contact.php?p=1&wm=list">Link</a>

    would direct you to contact.php and set 2 URL parameters.
    Parameter p would have the value 1, and parameter wm would have the value list.

    A programming language like PHP would then be able to access these so called URL or GET parameters via something like

    $p = $_GET['p'];
    $wm = $_GET['wm'];


    and do something with them.

    If the code you posted is from Codeigniter then well, Codeigniter most probably uses them to pass information from one page to another. Variable p most probably is the number of the current page, and wm... well… something else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases