woody79 Posted May 1, 2007 Share Posted May 1, 2007 I have seen this in a few places but cannot work out how to do this. What i want to do is have a textarea that when filled out goes to mysql and so on, i already know how to do this, but what i really want to do is have a custom tag such as <video>file=video.flv|width=200|height=150</video> and then php takes that line and puts it into <embed></embed> tags ??? ? That's my question I hope you can help! Link to comment https://forums.phpfreaks.com/topic/49424-php-custom-tags/ Share on other sites More sharing options...
ToonMariner Posted May 1, 2007 Share Posted May 1, 2007 you will need to learn some regular expression stuff... google bbcode and have a look at how that is parsed - you can adapt the very same thing for your needs. Link to comment https://forums.phpfreaks.com/topic/49424-php-custom-tags/#findComment-242204 Share on other sites More sharing options...
woody79 Posted May 1, 2007 Author Share Posted May 1, 2007 I already know how taht works using str_replace but i want to use <></> tags Link to comment https://forums.phpfreaks.com/topic/49424-php-custom-tags/#findComment-242235 Share on other sites More sharing options...
trq Posted May 1, 2007 Share Posted May 1, 2007 I already know how taht works Then use it. Take a look at homw some templating systems work. Link to comment https://forums.phpfreaks.com/topic/49424-php-custom-tags/#findComment-242320 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.