Why is my form output adding '/'s!?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpnewb78
Forum Newbie
Posts: 1
Joined: Sun Jul 18, 2010 6:58 pm

Why is my form output adding '/'s!?

Post by phpnewb78 »

Hi everyone,

I have downloaded an open source WYSIWYG PHP editor script. It works great except that it adds '/'s before every single " in the html attributes. This means no links or images work correctly and I am guessing some browsers won't even display any of the tags at all.

eg. of output tag.

<IMG height=60 alt=\"openWYSIWYG - Cross-browser WYSIWYG editor\" src=\"http://www.openwebware.com/images/openw ... go9060.gif\" width=90 border=0>

Any ideas of why this is happening?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Why is my form output adding '/'s!?

Post by AbraCadaver »

magic_quotes_gpc is enabled in php.ini. Either disable it or use stripslashes().
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Gargoyle
Forum Contributor
Posts: 130
Joined: Wed Jul 14, 2010 12:25 am

Re: Why is my form output adding '/'s!?

Post by Gargoyle »

Post Reply