RE: [PHP] mail() and stripslashes()

2001-04-20 Thread Navid Yar

Isaac,

Something like this worked for me...

?php
if ($article) {
  print stripslashes(nl2br($article));
}
else {
  print 'Please a href="1.php"go back/a and type an article before
sending.';
}
?

Where $article would be the e-mail sent out in raw form.



-Original Message-
From: Isaac Force [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 4:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mail() and stripslashes()


I'm using the mail() function to send email out via the web, and I've run in
a problem with escaped characters showing the slash in the emails.

I get the text for the email ($email_text, lets say) and then I strip the
slashes and put the new version in another variable ($nice_email_text). When
using the mail function, $nice_email_text is the data that gets sent out,
but the slashes in the escaped characters still show up in the messages.
(With OE)

Any ideas what would be causing this? The scripts I've made are sending out
emails to customers, and I don't want all the " and ' characters to show up
with slashes next to them.


-- 
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]




[PHP] mail() and stripslashes()

2001-04-19 Thread Isaac Force

I'm using the mail() function to send email out via the web, and I've run in a problem 
with escaped characters showing the slash in the emails.

I get the text for the email ($email_text, lets say) and then I strip the slashes and 
put the new version in another variable ($nice_email_text). When using the mail 
function, $nice_email_text is the data that gets sent out, but the slashes in the 
escaped characters still show up in the messages. (With OE)

Any ideas what would be causing this? The scripts I've made are sending out emails to 
customers, and I don't want all the " and ' characters to show up with slashes next to 
them.