uramagget Posted June 1, 2007 Share Posted June 1, 2007 I'm making a content management system, and so, I'm trying to allow PHP code to work, properly, when entered through the form. But the problem is, after a user presses the submit button to edit the page, and has PHP code, it adds on a backslash to every variable declaration, and certain characters. How do I rectify this? Quote Link to comment https://forums.phpfreaks.com/topic/53917-how-can-i-allow-php-code-in-forms/ Share on other sites More sharing options...
DeathStar Posted June 1, 2007 Share Posted June 1, 2007 Isn't this magic_quote_gcp? Quote Link to comment https://forums.phpfreaks.com/topic/53917-how-can-i-allow-php-code-in-forms/#findComment-266577 Share on other sites More sharing options...
uramagget Posted June 1, 2007 Author Share Posted June 1, 2007 How would I format this properly, though, so it can work? Quote Link to comment https://forums.phpfreaks.com/topic/53917-how-can-i-allow-php-code-in-forms/#findComment-266582 Share on other sites More sharing options...
penguin0 Posted June 2, 2007 Share Posted June 2, 2007 Replace $content with what variable you assign to the row you store content, in the db. $content = stripslashes ( $row['content'] ); Quote Link to comment https://forums.phpfreaks.com/topic/53917-how-can-i-allow-php-code-in-forms/#findComment-266600 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.