|
Posted by Ridge Burner on 02/23/06 20:29
"coder" <dmsheets@gmail.com> wrote in message
news:1140716157.016415.279790@j33g2000cwa.googlegroups.com...
> Hello,
>
> I have a content management page where I can place rich text.
>
> On the confirmation page I display the rich text the user has inputted.
> However, I am noticing that when images are included in the rich text,
> the confirmation page is not displaying it. When looking at the source
> code, it is outputting:
>
> <img height=\"59\" alt=\"Gmail\"
> src=\"https:mail.google.commailhelpimageslogo.gif\" width=\"143\"
> align=\"left\" vspace=\"10\" border=\"0\" >
>
> Now, when I submit this the image does get inserted into the database
> properly. However, on the confirmation page is does not. Is there a
> replace function to use for "\" to only display the rich text on the
> confirmation page?
>
> I would use a separate variable to retain the above formatting so that
> MySQL doesn't throw an error.
>
> Any assistance would be much appreciated!!
>
If you are just echoing the text after submission, you are probably looking
for something like stripslashes().
echo stripslashes($_POST['myImageTag']);
and something like $_POST['myImageTag']) =
mysql_real_escape_string($_POST['myImageTag']);
or $_POST['myImageTag']) = addslashes($_POST['myImageTag']);
to put them back.
[Back to original message]
|