Insert text into database
Hi,
I am new in programming and I would like your help.
I build a site that contains a textarea. In this textarea an user have to insert html code so as to check it.
For example, I would like to check if before all 'a href' there is '<' and then '>'.
What is the best ? To insert into a database (php and mysql) or it would be better to use javascript ?
If anyone knows how can I do it in first or second case please help me . .
Thanking you in advance
P.S. : I am sorry for my English , I don't speak so good.
|