Jump to content

problem with catching a string..


monkeytooth

Recommended Posts

Well I am trying to filter my inputs a bit before storing them...  my issue is I can't seem to catch and filter everything i want to. In this case some html tags like the textarea tag trying to prevent people from breakin my inputs to then attempt to alter things a bit. Which grant it for the most part my filters are working to weed things out but the textarea thing, it annoys the piss out of me. Any ideas on what I can do? cause none of the 3 below catch it, stop it, nothing.. not even when i try to just catch the word textarea and have it put ... in its place, sorry for sounding crass, ive been up for 3 days working on a project, coffee ran out this morning early, you know how it goes.. :-)

 

 

htmlentities($something);

ereg_replace('"', '"', $something);

str_replace("[string]", "equivalent", $something);

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/149832-problem-with-catching-a-string/
Share on other sites

Stand corrected, im still not able to stop the teaxt area from breaking somewhere its not catching accordingly, my "Filters" run above the body tag from $_POST vars. Thing is the filters are working like a charm minus catching that element. I dont get it, its almost driving me insane..

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.