1

I have a html form tag that sends this string to a php file:

value='network="export"'

when loaded in php, it shows up as:

network=\"export\

what would be the proper syntax to use in html so when loaded in php, it'll show up as:

network="export"

hope my question wasnt confusing, thanks for the help!

1
  • Are you sure it doesn't show up as network=\"export\" ? Commented Feb 23, 2011 at 6:22

3 Answers 3

3

Sounds like you need to disable magic quotes in PHP.

Sign up to request clarification or add additional context in comments.

Comments

0

If the string looks like this: network=\"export\" then you can remove the slashes using: stripslashes()

Usage here: http://www.php.net/manual/en/function.stripslashes.php

Comments

0

It sounds like you have magic quotes enabled in your php configuration. That documentation page includes information about what this setting does, and how you can disable it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.