Jump to content

Archived

This topic is now archived and is closed to further replies.

erfg1

PHP form <BR>

Recommended Posts

When I made my form php powered, and you fill out a <TEXTAREA>, it does spaces, but the spaces dont show when displaying the mysql content onto a website. How would I make it so you can do <BR>'s instead of mysql's space downs. I assume it has something to do with str_replace.

Share this post


Link to post
Share on other sites
It do not do spaces, it actually makes line breaks, but linebreaks show up as spaces when the HTML is rendered and the <br> ('break line' or something like that) represents the line break. In order to convert the line breaks into HTML line breaks you would have to use the function hostfreak showed you or make one yourself, but making a function that already exists would be sort of stupid.

Share this post


Link to post
Share on other sites
Thank you very much hostfreak. That was exactly what I was looking for.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.