1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating conversations via URL

Discussion in 'XenForo Pre-Sales Questions' started by James, Aug 5, 2010.

  1. James

    James Well-Known Member

  2. Kier

    Kier XenForo Developer Staff Member

    We could relatively easily add support for comma-separated names. Post in the suggestion forum :)
  3. James

    James Well-Known Member

    I think an ampersand might work better, presuming it doesn't conflict with standard query parameters.
  4. Enigma

    Enigma Well-Known Member

  5. Freddie

    Freddie Active Member

  6. James

    James Well-Known Member

  7. Onimua

    Onimua Well-Known Member

    This would be a bad idea. The script won't be able to read it because the ampersand in URLs "break up" the information in the link. For example...


    When the script looks at it, the information passed is...

    echo $_REQUEST['food']; // This would print "burger" to the screen
    echo $_REQUEST['drink']; // This would print "water" to the screen
    If you wanted to use an ampersand to divide each username using the following URL, you'd end up with a script that doesn't take all the names.


    echo $_REQUEST['to']; // This would only return "user1"
  8. Freddie

    Freddie Active Member

    Onimua, see my post for how you would use the ampersand, if one chose that direction.
  9. Onimua

    Onimua Well-Known Member

    Ew, such an ugly link! :p I did see it, I was rather expanding upon why using ampersand would be a bad idea on its own. Turning it into an array could be done but it's just a bad approach as you've highlighted.
  10. James

    James Well-Known Member

    Comma-separated works fine - no worries :p

Share This Page