Web Analytics Made Easy -
StatCounter Variables in URLs - CodingForum

Announcement

Collapse
No announcement yet.

Variables in URLs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Variables in URLs

    Never mind fixed it
    Last edited by bubbles19518; Sep 25, 2006, 12:52 AM.
    -bubbles

  • #2
    PHP Code:
    $variable str_replace("%20"" "$original string); 
    This just simply replaces the %20 in the url with a space for php.

    Or you could just to something like this:
    say someone enters a variable like this: index.php?love=i-like-foobar

    PHP Code:
    $variable str_replace("-"" "$_GET['love']); 
    $variable would then at that point be "i like foobar"

    whatever you would like.

    Comment

    Working...
    X