Jump to content

Need Help on coding


atlanta

Recommended Posts

Hi everyone i was coding last night and made a page where users can submit css code into a post form and then it outputs them to a page where there code is inserted into a form where they can post on there site so that users can just click and preview the layout they submitted only thing is and i know this is simple but im new to the php thing is that when they submit it php put \ in front of all the " and ' what do i need to use to make it not apply the \ before these characters?? Thanks Much.

from:
<style type=\"text/css\">

to
<style type="text/css">
Link to comment
Share on other sites

or..

It would seem to me that you have get_magic_quotes_gpc turned on.. If so place something like this at the top of your script.

[code=php:0]
if (get_magic_quotes_gpc()) {
  $_POST = array_map('stripslashes', $_POST);
}
[/code]

that should fix the issue..

Good Luck,
Tom
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.