Forum Moderators: coopster

Message Too Old, No Replies

Need advices about textarea

in a server side

         

orion_rus

9:33 am on Jan 23, 2005 (gmt 0)

10+ Year Member



Hello world, i need advice how to store textarea with special tags in a database.
Special tags means, tags in a "[" "]", like "[legend]". Then i sumbit a form to a server, is i store it in a database this special tags or convert it to a html tags like (url)=>(a) before inserting, and then reediting it i make inverting html tags to a special tags (a)=>(url) (like in this forum).
In the other words i need to know, then phase of converting tags is happend, before inserting to a database or then it selected from database, before it showing to a user.
Thanks in advance.

dmmh

9:39 am on Jan 23, 2005 (gmt 0)

10+ Year Member



for what you are trying to do, you need to look into regular expressions. regular expressions are somewhat complicated and kinda hard to explain. so go here: [phpbuilder.com...] for a great tutorial

you just store the tags as they are, but when they are retrieved from the DB, you 'convert' certain strings to other strings with the regular expressions

good luck :)

[edited by: jatar_k at 7:07 pm (utc) on Jan. 24, 2005]