View Single Post
Old 06-25-2007, 12:15 PM   #1 (permalink)
thejeremy
 
True Techie

Join Date: May 2006

Location: Chicago IL

Posts: 104

thejeremy

Send a message via AIM to thejeremy
Default Allowing HTML in PHP/MySQL posts?

I'm working on my own website for personal use, nothing on a large-scale, and I'm coding it all from scratch just because that's how I like to do things. I have some of the basic PHP/MySQL foundation stuff down, like logging in/out and whatnot, but I want to be able to make posts onto the main page by typing in a large textbox just like how I'm making this post now. I want to allow HTML tags within this textbox without screwing everything up. I also want to make it ok to use apostrophes in words. I've tried this and it causes lots of issues with the surrounding PHP code. Do I need to write my own regular expression replacement functions using preg_replace or is there some easier way to do this?

Thanks in advance.
__________________
CPU: AMD Athlon 64 X2 5200+ Windsor, 2.6 GHz
RAM: CORSAIR XMS2 2GB 240-Pin DDR2
VIDCARD: EVGA PCI-Express x16 GeForce 7900GS 256MB
MOBO: ASUS M2N-SLI Deluxe AM2
HDD: Seagate Barracuda 320GB 7200 RPM SATA

my blog: http://jspot.gotdns.com
thejeremy is offline