PHP and display issues

Discuss web site design

Moderators: IRC Operators, Support Team

Posts: 1
Joined: Tue Jun 23, 2015 8:45 am

PHP and display issues

Postby Goinfory » Tue Jun 23, 2015 8:47 am

Hello, I created a script that lets users add content and style to there pages which also allows users to preview there changes which worked on my localhost but when I moved my files to Hostforlife hosting and used my preview button in my form it stripped all my css styles attribute and add backslashes like crazy. How can I fix this problem so that my style attribute is not stripped and slashes are not added? I have hostforlife linux PHP5 host.

Here is an example of output when previewed.

<p class=\"asasas\">...</p>

My desired output.

<p style="color: green; margin: 50px; padding: 0px; width: 899px;" class="asasas">...</p>

Return to “Web design”

Who is online

Users browsing this forum: No registered users and 1 guest