Hi everyone, I'm having trouble with one of my forms and would appreciate your help...

I have a form with a text area that a user can enter a message into, when the form is submitted the user is directed to another page to confirm the content of the message before confirming and entering the record into the database.

Here's the problem... if the user enteres "I didn't go to the show"
it shows up in the confirmation text area as follows...

\"I didn\'t go to the show\"

How do I get rid of those backslashes?

    Change php.ini to set magic_quotes_gpc to Off. If you do not have access to change php.ini, ask your server administrator (but the fellow will probably be very reluctant because it may break other people's scripts).

    If this is not feasible, check with [man]get_magic_quotes_gpc/man then use [man]stripslashes/man if necessary.

      changing magic_quotes_gpc = Off in php.ini has not seemed to work. Should this have taken effect immediately after I made the change, or does it take a while to register?

      Can you elaborate on your second suggestion? Thanks for the assistance.

        Alright! stripslashes() worked like a charm... Thanks LaserLight It would have taken me forever to figure that out on my own!

          Should this have taken effect immediately after I made the change, or does it take a while to register?

          Did you forget to restart the server?

            Write a Reply...