Help - Search - Members - Calendar
Full Version: Form Post puts / in front of " and '
HTMLHelp Forums > Programming > Server-side Scripting
stewdizzle

I have a quick site that I set up to help me with my ebay auctions. I type in a few variables and it spits out html so I can post the auction. Whenever any of these variables has a " or a ' it automatically puts a backslash in front of it. What can I do to fix this? http://codegenerator.x10hosting.com/2pic.php (all fields do not need to be filled to generate code_
Darin McGrew
This is a PHP question, so I moved it from Markup to Server-side Scripting.
Christian J
Sounds like http://php.net/manual/en/info.configuratio...agic-quotes-gpc

To remove them you might use http://php.net/stripslashes
stewdizzle
QUOTE(Christian J @ Mar 21 2009, 08:01 AM) *


Does the stripslashes code go in the form or the text field that i post to?
Brian Chandler
QUOTE
Does the stripslashes code go in the form or the text field that i post to?


Well, you enter the stuff in a form, which is submitted to http://codegenerator.x10hosting.com/2pic.php -- so you need to modify this php script, or alternatively switch off the "magic quotes" option in the php installation at this codegenerator site. I'm not clear if you have control of it or not...?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.