building an url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    building an url

    i an trying to build a url like
    Code:
    $valid-url = "p1=".rawurlencode($_GET['p1'])."&type=".rawurlencode($_GET['type'])."&os=".rawurlencode($_GET['os'])."&price=".rawurlencode($_GET['price'])."&sort=".rawurlencode($_GET['sort'])."&sort_order=".rawurlencode($_GET['sort_order'])."&perpage=".rawurlencode($perpage)."";
    and then pass it to
    Code:
    <a href=
    .but the $valid-ulr is giving escaping problem.can i get help on this.?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Ironically, $valid-url is not a valid variable name. No hyphens.

    Comment

    Working...