Professional Web Applications Themes

Converting a string to formatted html - PHP Development

Hi all, I know this can be done somehow but I am not sure. I have a form being submitted to a php file and I wanted a textfield to be converted to formatted html. At the moment none of the line breaks are being submitted and inverted commas have slashes. I know the slashes can be removed using stripslashes function. I thought line breaks would come through with \n but that isn't being transmitted over the form. Can anyone help? Best wishes, Ian Gray --------------------------------- Ian A. Gray Manchester, UK Telephone: +44 (0) 161 224 1635 - Fax: +44 ...

  1. #1

    Default Converting a string to formatted html

    Hi all,

    I know this can be done somehow but I am not sure. I have a form being submitted to a php file and I wanted a textfield to be converted to formatted html. At the moment none of the line breaks are being submitted and inverted commas have slashes. I know the slashes can be removed using stripslashes function. I thought line breaks would come through with \n but that isn't being transmitted over the form. Can anyone help?

    Best wishes,

    Ian Gray



    ---------------------------------
    Ian A. Gray
    Manchester, UK
    Telephone: +44 (0) 161 224 1635 - Fax: +44 (0) 870 135 0061 - Mobile: +44 (0) 7900 996 328
    Business Enquiries: +44(0)870 770 8832
    E-mail: org.ukWebsites: www.baritone.uk.com (Performance) www.vocalstudio.co.uk (Vocal Tuition)www.selectperformers.com (Web design for professional musicians)
    ---------------------------------



    Ian Guest

  2. #2

    Default Converting a string to formatted html

    (I'm re-submitting this 'cos I sent it in html- woops!)

    Hi all,

    I know this can be done somehow but I am not sure. I have
    a form being
    submitted to a php file and I wanted a textfield to be
    converted to formatted html.
    At the moment none of the line breaks are being submitted
    and inverted commas
    have slashes. I know the slashes can be removed using
    stripslashes function. I
    thought line breaks would come through with \n but that
    isn't being transmitted
    over the form. Can anyone help?

    Best wishes,

    Ian Gray


    =====

    ---------------------------------
    Ian A. Gray
    Manchester, UK
    Telephone: +44 (0) 161 224 1635 - Fax: +44 (0) 870 135 0061 - Mobile: +44 (0) 7900 996 328
    Business Enquiries: +44(0)870 770 8832
    E-mail: org.ukWebsites: www.baritone.uk.com (Performance) www.vocalstudio.co.uk (Vocal Tuition)www.selectperformers.com (Web design for professional musicians)
    ---------------------------------
    Ian Guest

  3. #3

    Default Re: [PHP] Converting a string to formatted html

    Ian,

    PLEASE search the archives before asking the list -- this question is
    asked every couple of days, which is quite frustrating.

    See http://au.php,net/nl2br

    Justin French

    On Monday, October 27, 2003, at 09:15 PM, Ian Gray wrote:
     
    Justin Guest

Similar Threads

  1. How to display XML String in formatted manner like a XML?
    By sentiboy in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 22nd, 10:45 AM
  2. Converting a String to number
    By Kaitlyn_k in forum Macromedia ColdFusion
    Replies: 2
    Last Post: May 3rd, 11:19 PM
  3. Can you send HTML formatted mail through PHP
    By Ted in forum PHP Development
    Replies: 3
    Last Post: February 16th, 03:06 AM
  4. Replies: 21
    Last Post: January 14th, 04:10 PM
  5. Sending HTML formatted mail using CDONTS
    By Paul Turley in forum ASP.NET General
    Replies: 2
    Last Post: August 12th, 09:16 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139