snoopy0877
10-16-2003, 03:24 AM
I have the "Content" fields in database, datatype is blob. In the form for user upload, I have 2 option:
1/ Upload plain text in textarea box
2/ Upload html file in file fields
When I show this data on the browser I want to check:
If "Content" fields have html tag(upload html's file) I 'll show normal echo $Content
If "Content" fields is plain text I ll show by nl2br($Content)
How can I check for this condition, have anyone experience with that problem, pls help me....
1/ Upload plain text in textarea box
2/ Upload html file in file fields
When I show this data on the browser I want to check:
If "Content" fields have html tag(upload html's file) I 'll show normal echo $Content
If "Content" fields is plain text I ll show by nl2br($Content)
How can I check for this condition, have anyone experience with that problem, pls help me....