Page 1 of 1
Does anyone know...
Posted: Sat Aug 09, 2003 7:08 am
by Shiro
Does anyone know why whenever i print something with a ' in it it changes the ' into a '' For instance if i were to do this
Code: Select all
$Message = "Hey I'm Shiro."
mail("$To,$subject,$Message,$extra");
That would print out like
Hey I''m Shiro.
Help :0(
Posted: Sat Aug 09, 2003 7:11 am
by Gen-ik
See if this works..
Code: Select all
<?php
$Message = "Hey I'm Shiro."
mail($To,$subject,stripslashes($Message),$extra);
?>
..sorry if it doesn't work but I've just woke up and my brains still in 1st gear!
thanks
Posted: Sat Aug 09, 2003 7:13 am
by Shiro
well its sorta a form so when people write like the word don't or couldn't anything with the ' that wont help X(
Thanks though

Posted: Sat Aug 09, 2003 7:14 am
by Gen-ik
Sorry mate I've just changed it... check it now. I've put the stripslashes() function into it

:D
Posted: Sat Aug 09, 2003 7:15 am
by Shiro
*Refreshes*

*sees nothing :0(*
ooo
Posted: Sat Aug 09, 2003 7:16 am
by Shiro
oo gotcha

Posted: Sat Aug 09, 2003 7:16 am
by Gen-ik
<?php
$Message = "Hey I'm Shiro."
mail($To,$subject,stripslashes($Message),$extra);
?>
Thanks
Posted: Sat Aug 09, 2003 7:16 am
by Shiro
Thanks A bunch
