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? 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? 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? 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'] ); 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
Archived
This topic is now archived and is closed to further replies.