+ Reply to Thread
Results 1 to 4 of 4

Thread: PHP Cant Figure Out How To Add Space

  1. #1
    dquigley's Avatar
    dquigley is offline x10 Sophmore dquigley is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Fresno, CA
    Posts
    249

    Question PHP Cant Figure Out How To Add Space

    So here is the code, I must be doing something wrong

    PHP Code:
     $message 'Hello,

    You have recieve this message from, '
    .$_POST[sender_name].' , who is a member of Dollars To Riches their email address is '.$_POST[sender_email].' they thought you may like to visit our site. 

    Dollars To Riches is a website dedicated to helping you make money online. We specialize in providing our members with the resources and tools they need to be successful with a online business.

    Join us now, you could be making up to $46,860.00 a year, OR MORE! Not only can you make a lot of money with our program but you will also be able to do all of this in the comfort of your own home, so dont wait visit our site now. 

    Click the link below.

    http://www.dollarstoriches.com/?ref='
    .$_SESSION['userid']

    .
    $_POST[sender_name].' has used our Tell-a-Friend form to send you this email.'
    And here is what the email looks like

    Hello,

    You have recieve this message from, David , who is a member of Dollars To Riches their email address is blah@blah.net they thought you may like to visit our site.

    Dollars To Riches is a website dedicated to helping you make money online. We specialize in providing our members with the resources and tools they need to be successful with a online business.

    Join us now, you could be making up to $46,860.00 a year, OR MORE! Not only can you make a lot of money with our program but you will also be able to do all of this in the comfort of your own home, so dont wait visit our site now.

    Click the link below.

    http://www.dollarstoriches.com/?ref=1David has used our Tell-a-Friend form to send you this email
    The problem is

    I need it to say



    Thanks a bunch


  2. #2
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: PHP Cant Figure Out How To Add Space

    lol, make it this
    PHP Code:
     $message 'Hello,

    You have recieve this message from, '
    .$_POST[sender_name].' , who is a member of Dollars To Riches their email address is '.$_POST[sender_email].' they thought you may like to visit our site. 

    Dollars To Riches is a website dedicated to helping you make money online. We specialize in providing our members with the resources and tools they need to be successful with a online business.

    Join us now, you could be making up to $46,860.00 a year, OR MORE! Not only can you make a lot of money with our program but you will also be able to do all of this in the comfort of your own home, so dont wait visit our site now. 

    Click the link below.

    http://www.dollarstoriches.com/?ref='
    .$_SESSION['userid']

    .
    ' '.$_POST[sender_name].' has used our Tell-a-Friend form to send you this email.'
    noticed how i put .' '. before sender_name? that will add a space, because although you add a space or even a new line, unless it's in a string, it's not gonna notice it.

  3. #3
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: PHP Cant Figure Out How To Add Space

    Break out of the variable?

    Use /r/n to break a line.
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  4. #4
    dquigley's Avatar
    dquigley is offline x10 Sophmore dquigley is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Fresno, CA
    Posts
    249

    Re: PHP Cant Figure Out How To Add Space

    Oh my gosh, stupid me, what a brain fart, thanks again ^__^


+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. [OFF] Rent out Signature Space!
    By ikki() in forum The Marketplace
    Replies: 3
    Last Post: 10-04-2006, 04:18 PM
  4. PHP Easter Eggs
    By dragoneye_xp in forum Off Topic
    Replies: 3
    Last Post: 06-14-2006, 05:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers