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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post

    sending formated sms with PHP

    Hi all,
    I have done a small program to send sms. for ex. the text is having 3 line and i want to put a <br> in each line. I tried every possible way. char(10).char(13) , <br> , <pre>. but nothing works
    the sms sending is working smoothly. but all text goes as continues lines
    How can i achieve this??

    Million thanks

  • #2
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    Most SMS is a plain text message so you'll need to convert any <br> to a \n\r character. If you are entering this in a text area just hitting enter will work... or same via PHP
    PHP Code:
    $messageToSend 'This is a new
    message to send
    via
    text message'

    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #3
    Regular Coder
    Join Date
    Sep 2006
    Location
    India Mumbai
    Posts
    248
    Thanks
    13
    Thanked 1 Time in 1 Post
    There is a loop which is forming the text so i cannot give enters in the lines. Also i have already tried \n\r. nothing works.

  • #4
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts
    Can we see your coding?
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com


  •  

    Posting Permissions

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