I have a few questions. When working with a sendmail.php or whatever you want to call it how would you check for HTML tags? I can't find a functions to do it... I suppose just looking for "<" and ">" would work, would it not?
are the tags a part of the user input.... eg something the user enters into a text input / textarea field?
what exactly do you want to do with the html tags?
you could replace the left and right signs with their unicode equivalent, which would prevent them from causing any harm.
PHP Code:
str_replace('<', '<', $tring);
str_replace('>','>', $tring);
I don't understand this whole database thing, I know how to access it, and all that. What I don't get is how you actually look at a section of data. Like it recently hit me what fgets() does, great end at the line break...but what if I wanted it to begin the second line down, or third, etc? I just don't get it
if you wish to insert line breaks before the start of a new html field then that would require a couple of things. First you would need to know how you would like to delimit (separate) the content, then you would need to know how far down you would like to push everything. This can be done at two times. it can be done before you insert them into the database, or you can do it after you pull from the database.
research the implode() and explode() methods on http://www.php.net
Bookmarks