Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Brad Bonkoski

Ross wrote:
 $mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica, 
sans-serif\ stripslashes($mail_text) /font;


this just returns

{stripslashes(it\'s

a


testss}

  

$mail_body .=font size=\2\ face=\Verdana, Arial, Helvetica,

sans-serif\ .stripslashes($mail_text). /font;

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Richard Lynch
On Mon, October 2, 2006 8:09 am, Ross wrote:

$mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica,
 sans-serif\ . stripslashes($mail_text) . /font;

HOWEVER:

The fact that you are calling stripslashes at all tells me that either:

  You've screwed up with Magic Quotes being on and calling addslashes
(or mysql_[real_]escape_string) so you've essentially double
addslashed your data.
  You don't understand the purpose of escaping data for INPUT to MySQL
and think you need to escape it for OUTPUT, which you don't.

ANYBODY calling stripslashes is almost-for-sure doing something
fundamentally wrong in their code.

H.  Can we get *that* into E_STRICT? :-)

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica,
 sans-serif\ . stripslashes($mail_text) . /font;


Can we also comment on the horror that is the font tag?

I thought I was gonna puke...

No?  OK, moving along, nothing to see.

--
The Piper's calling you to join him

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread tedd

At 4:59 PM -0600 10/2/06, Google Kreme wrote:

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica,
 sans-serif\ . stripslashes($mail_text) . /font;


Can we also comment on the horror that is the font tag?

I thought I was gonna puke...

No?  OK, moving along, nothing to see.


I saw that as well, and had a similar response -- but I'm not sure 
how one can use a style sheet with/within an email.


I would ask If you wanted to send a styled email, how do you do it? 
-- BUT -- I haven't RTFM on the subject and don't want anyone to tell 
me to do so -- so, I haven't asked.  :-)


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how do I get this line to work inside double quotes

2006-10-02 Thread Google Kreme

On 02 Oct 2006, at 17:13 , tedd wrote:

At 4:59 PM -0600 10/2/06, Google Kreme wrote:

On 02 Oct 2006, at 14:56 , Richard Lynch wrote:

$mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica,
 sans-serif\ . stripslashes($mail_text) . /font;


Can we also comment on the horror that is the font tag?


I saw that as well, and had a similar response -- but I'm not sure  
how one can use a style sheet with/within an email.


well, if you want to shudder send HTML email, you can just put the  
styles in the header, or have it link to a style sheet on your  
server.  It's HTML, you'd do it like any other HTML.


On the other hand, I'd rather send a link to an HTML page than a  
bunch of HTML email, but that's me.



--
Naked blonde walks into a bar with a poodle under one arm, and a two- 
foot salami under the other. The bartender says, I guess you won't be  
needing a drink. Naked lady says…


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php