A very strange thing is happening: I have a WYSIWYG editor I am using with a default text that looks like this:
$default_text="<table width=\"100%%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"125\" {BACKGROUND}>
<tr>
<td colspan=\"3\"><h2>Put Title Here </h2></td>
</tr>
<tr>
<td colspan=\"3\"><h4><em>{BACKGROUND}</em></h4></td>
</tr>
<tr>
<td width=\"33%%\">Phone: $phone</td>
<td width=\"33%%\">Email: $email</td>
<td width=\"34%%\"><a href=http://therealdealz.net/online_ads.php?ad_id=$id>more info</a></td>
</tr>
</table>";
Which looks and works fine. However I am trying to allow users to select either a background image or a background color for the table, which posts from the form fine. What is happening is when I do a ereg_replace for the pattern {BACKGROUND} the {BACKGROUND} enclosed by <h4><em>... gets replaced by what the user has selected. But in the {BACKGROUND} of the table code it does not work. The {BACKGROUND} does not get replaced by the users selection.
Any suggestions would be greatly appreciated!!
Thanks
Matt