Patrick3002 Posted October 20, 2006 Share Posted October 20, 2006 Hi, i was wondering if anyone could help me with this code:[code]<form name="strreplace" action="strreplace.php" method="post"><textarea name="main" cols="50" rows="40" wrap="VIRTUAL" id="main"></textarea><input type="submit" value="Submit"></form><?$main=$_POST['main'];$main = str_replace("c:","<br>f:","$main");echo nl2br(stripslashes($main));?>[/code]Now i was wondering instead of replacing "c:" with "f:" is it possible to replace a [u][i][b]"[/b][/i][/u] with [u][i][b]\"[/b][/i][/u] Quote Link to comment Share on other sites More sharing options...
Patrick3002 Posted October 20, 2006 Author Share Posted October 20, 2006 I've figured it out, thanks anyways. 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.