Jump to content

Advanced form


ayok

Recommended Posts

In order to do that you would need to parse the text provided using replacing functions in order to convert the code into in html.

 

For example to parse tags you could use.

$string = str_replace("[b]","<b>",$string);
$string = str_replace("[/b]","</b>",$string);

 

by the way for more advanced replacements like for links and image tags which require regular expressions you should check out PHPfreaks regexp forum.

Link to comment
https://forums.phpfreaks.com/topic/60439-advanced-form/#findComment-300647
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.