Jump to content

Ahh need help urgent!


virtuexru

Recommended Posts

OK. So i'm letting users update their profile with a BIO.

 

I'm using a textarea for this with the following code:

 

<form action="" method="post">
<textarea name="biography" cols="40" rows="4"><?php echo $userinfo["biography"]; ?></textarea>
<br/>
<input name="submit" type="submit" id="update" value="Update!">	
</form>

 

Now the thing I need help with is this.. In the MYSQL Database, I set the field to TEXT. Is that OK as far as security? I want them to modify HTML code to a certain extent. Only allowed to use <p/><b><font color=> etc, kinda like myspace, but nothing that can screw with the page too bad like JavaScript. How would I be able to filter this?

Link to comment
https://forums.phpfreaks.com/topic/47304-ahh-need-help-urgent/
Share on other sites

Archived

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

×
×
  • Create New...

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.