Jump to content

Recommended Posts

Posted

I have a form that is submitting for the noticeboard I have made - Edu-it has pointed out it doesn't do lines very well! as the text area is submitting to the database as simple text. Is there a way I can convert the text from the text area into HTML before submitting to the database?

 

Or even as it echos the content of the database convert the text into HTML?

 

Toby

Posted
Webman to the rescue. Cheers. - also what can i use to convert the text which has http:// infront - I'm guessing it needs some processing to covert the link address to html?
Posted

Do you know a way to change it for if staff just post Google rather then Google

 

I tried

 

$text = preg_replace('@(wwww([.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '$1', $text);

 

But that didn't quite work!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...