Question : send text area as html

I have a text area in a form and want the contents to be posted as html.

Don't really need to to do much. Only so it recognises line breaks. i.e. <br/>

How can I do this?

Answer : send text area as html

Is the user of the form actually typing <br /> into the textarea, or do you mean that you want newlines to be converted to <br /> markup?

You can convert newlines in a string to <br /> (or <br/>) using the nl2br function in PHP.

If the user is typing <br /> in the textarea, then <br /> will appear in the submitted data, so you already have HTML in the resulting string.
Random Solutions  
 
programming4us programming4us