Page 1 of 1
about the symbol '
Posted: Mon Feb 16, 2004 10:05 pm
by tisa
i have one form, when user key in the symbol ', my program will change this symbol to '', i don't know?
someone can give me suggestion??
thanks
Posted: Mon Feb 16, 2004 10:08 pm
by DuFF
Run
stripslashes() on it.
Code: Select all
<?php
$input ="I don''t know";
$input = stripslashes($input);
echo $input; // OUTPUT: I don't know
?>
Posted: Mon Feb 16, 2004 10:14 pm
by McGruff
thank you
Posted: Mon Feb 16, 2004 10:14 pm
by tisa
it's work!
thanks a lot
another problem
Posted: Mon Feb 16, 2004 10:20 pm
by tisa
but i cannot save the data to database?
why