Hi! I have a question that might not be directly php-related, not all aspects of it anyway, but it has to do with things that I belive most of you have come across and know how to do.
I would like to know the general way to go in these situations: First thing, I'm developing a sort of forum. When a user submits a question I want to make sure that he hasn't written some evil script, so I guess I'll have to strip all tags. But then again, I would like him to be able to write links to other pages in his question... But i guess that I could easily find words that is urls, and then link them correctly automatic... Second thing, I have an admin-system for answeing questions... Now, the administrator of this is not a programmer what-so-ever and I don't want to force him to write href-tags in his answers... But I would like to have some sort of system to insert urls in the answers whitout having to show the href-tags to the administrator. How would you do this? I'm thinking like this Record in ANSWER-mysql-table holding the answer: "This is just a test and not an actual answer. Right now I'm trying to ad a link: [A1] And one more [A2] ." And then a LINK-table holding the links: |extid| link | text | A1 www.php.net PHP-resource A2 www.wrox.com Good books! which will produce the output when displaying the answer for the user; "This is just a test and not an actual answer. Right now I'm trying to ad a link: PHP-resource And one more Good books ." (PHP-resource and Good books linked to the specified urls...) Would this be the way to go? .bobo -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php