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! Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.