SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    936
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow What is this character (&) at the very end of the path mean?

    here is the character guys,

    Code:
    http://dadomain.com/index.php?view=jp&sid=742TlRFMk5UYzNNekF5T&sid2=742Tl&siduid=742&

    notice the & character at the very end of that path.

    what is that character mean?

    thank you in advance.

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Nothing at all. It is unnecessary and has no meaning since nothing follows it. & separates field name-value pairs in the query string.

    If I had to guess, it's because of lazy coding, and that URL was dynamically generated with something like this:
    PHP Code:
    $url "index.php?";
    foreach (
    $fields as $name => $val) {
      
    $url .= $name "=" $val "&";



Bookmarks

Posting Permissions

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