http://www.php.net/stripslashes

... in short they are there to ease db insertions.

On Wed, Nov 28, 2001 at 05:23:02PM -0500, Brian V Bonini wrote:
> I'm passing an html email from a form
> like this:
> 
> $message = $message_html;
> 
> where message_html is the text area name.
> 
> mail($to, $subject, $message, $headers);
> 
> I end up with, for example:
> 
> <div align=center\">
> <table width=550\" border=0\" cellspacing=0\" cellpadding=0\">
> <tr>
> <td bgcolor=#01405A\"><img
> src=http://www.gfx-design.com/vantico/spacer.gif\"; width=1\" height=10\"
> alt=\" border=0\"></td>
> </tr>
> 
> it's trying to escape the quotes and at times completely
> cutting them out.
> 
> The same snippet prior to being sent:
> 
> <div align="center">
> <table width="550" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td bgcolor="#01405A"><img
> src="http://www.gfx-design.com/vantico/spacer.gif"; width="1" height="10"
> alt="" border="0"></td>
> </tr>
> 
> Why is this happening? How can I stop it?
> 
> -brian
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
Hank Marquardt <[EMAIL PROTECTED]>
http://web.yerpso.net
GPG Id: 2BB5E60C
Fingerprint: D807 61BC FD18 370A AC1D  3EDF 2BF9 8A2D 2BB5 E60C
*** Web Development: PHP, MySQL/PgSQL - Network Admin: Debian/FreeBSD
*** PHP Instructor - Intnl. Webmasters Assn./HTML Writers Guild 
*** Beginning PHP -- Starts January 7, 2002 
*** See http://www.hwg.org/services/classes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to