After submitting php text words with a ' have a \ in front.

General discussions related to php

Moderators: macek, egami, gesf

ckwall

After submitting php text words with a ' have a \ in front.

Postby ckwall » Tue Dec 31, 2002 10:46 am

I have a php window where I type text and it is submitted dynamicaly to another web page. If I type something with an ' in it like "Dave's", it shows up "Dave\'s"

What have I done wrong?

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Thu Jan 02, 2003 12:14 am

nothing wrong...

this is your php.ini options =)

try to do

Code: Select all

$message=stripslashes($message);

ckwall

Postby ckwall » Mon Jan 06, 2003 6:56 pm

That worked, Thank you.


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 1 guest