Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: concatinate

  1. #1
    Regular Coder
    Join Date
    Feb 2006
    Posts
    112
    Thanks
    0
    Thanked 0 Times in 0 Posts

    concatinate

    Hi,
    I have two bits of info I want added together to from a string in my XHTML.

    This, which retrieves a variable...
    $track = $_GET['track'];

    and this
    $URL = "http://www.buildrebuild.com/mp3/"

    Will this work?
    <?php echo($URL + $track); ?>

    Or do I use...
    <?php echo($URL.$track); ?>

    Thx in advance,
    CB

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    In php you use dot. All you had to do was do a search on php.net for concatenate. Sometimes you can answer your own question by doing a little research yourself. Please do so in the future. Try things out. See if something works or not.
    PHP Code:
    <?php echo $URL.$track?>
    No need for the parentheses around the echo either.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Feb 2006
    Posts
    112
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry.
    I usually do a search. My head is fried at the mo'. No excuses...and thanks for the reply.

    Best
    CB


  •  

    Posting Permissions

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