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 5 of 5
  1. #1
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    851
    Thanks
    172
    Thanked 93 Times in 93 Posts

    need quotes for var within text?

    Hi guys

    Does the var inside this message text need to be in quotes or not?

    PHP Code:
    $message "  
     
    Thank you
    -------------------------  
    Email: '$payer_email'  
    Password: passwordHere  
    -------------------------  
     
    You can now login here"


    LT

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    need quotes for var within text?

    Does the var inside this message text need to be in quotes or not?
    Sorry, your question is not clear. How would you need to get the output?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    851
    Thanks
    172
    Thanked 93 Times in 93 Posts
    Hi abduraooft


    I will send a mail and the $message which contains text as you can see

    I want to include the var '$payer_email' within the text

    not sure if that needs quotes or not

    my script is breaking and i'm debugging ---- trying to eliminate things really

    LT

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    my script is breaking and i'm debugging ---- trying to eliminate things really
    You don't need that quotes in the above unless otherwise you need them in the output.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    low tech (11-03-2010)

  • #5
    Regular Coder low tech's Avatar
    Join Date
    Dec 2009
    Posts
    851
    Thanks
    172
    Thanked 93 Times in 93 Posts
    Hi

    Thank you abduraooft


    It is exactly as you say -- cheers

    LT


  •  

    Posting Permissions

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