View Single Post
Old 12-04-2012, 03:30 PM   PM User | #1
c1lonewolf
Regular Coder

 
Join Date: Sep 2002
Posts: 216
Thanks: 0
Thanked 11 Times in 11 Posts
c1lonewolf is an unknown quantity at this point
mailform problem with stripslashes()

Ok here's the problem...after form validation the key value is changed using stripslashes($value) but when I add supposedly new value to email I have to use stripslashes() again to get it to come out correctly. Otherwise all single quotes have a slash in front. Why?


once validated prep:
$data = stripslashes($value);
$_POST[$key] = $data;


Email Message:
$Message = stripslashes($Message);

Message:
$Message
__________________
NO Limits!!
c1lonewolf is offline   Reply With Quote