what do i wanna ask?.....don't know what to call it :P
Posted: Sat Jul 13, 2002 5:58 am
ok, i got a form which takes comments in a textarea and inserts into db, no problem there.
when it is inserted i use
to replace any "", ' etc.
when it needs to be shown on a page i use
to remove the \
that works too, my problem is that it does't show as it was mean't to be, e.g.:
just like this forum.
wht can i use to make sure it shows as it was posted.
also can htmlentities(); stop users from useing java script in the posts?
cos i tried with <b> and it allowed that
i hope you understand what i am talking about cos i don't
thanks for your hlp in adv.
when it is inserted i use
Code: Select all
htmlentities($val);when it needs to be shown on a page i use
Code: Select all
stripslashes($edit1їval]);that works too, my problem is that it does't show as it was mean't to be, e.g.:
Code: Select all
text
text text text text
text text textwht can i use to make sure it shows as it was posted.
also can htmlentities(); stop users from useing java script in the posts?
cos i tried with <b> and it allowed that
i hope you understand what i am talking about cos i don't
thanks for your hlp in adv.