PHP Form & mqSQL Problem

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
presyce
Forum Newbie
Posts: 1
Joined: Fri Apr 14, 2006 7:59 pm

PHP Form & mqSQL Problem

Post by presyce »

I got a PHP form that submits a selected column list

Code: Select all

from my mySQL table. When I submit it, to preview.php, tha

Code: Select all

which is HTML code is changed to fit PHP by changing all of the " to \" and it completely makes the code useless to me..

heres the link. http://mslayouts.net/index.php?page=layouts/rap

Ive made the preview page display the code in a text box to show you what is going on.

How do I get rid of the backslash?
Last edited by presyce on Fri Apr 14, 2006 8:19 pm, edited 2 times in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Since you didn't ask a question, I'll divine it: "How do I get rid of the backslashes?"

Answer: stripslashes() but you should check get_magic_quotes_gpc() first before using it.
Post Reply