RE: [PHP-DB] It\'s wierd when I\'ve used forms...

2003-08-23 Thread Joe Walker
Thanks, the stripslashes() function worked perfectly!

 -Original Message-
 From: Jacob A. van Zanen [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 22, 2003 5:48 PM
 To: [EMAIL PROTECTED]
 Cc: Joe Walker; [EMAIL PROTECTED]
 Subject: Re: [PHP-DB] It\'s wierd when I\'ve used forms...
 
 I mean in front of special characters off course :-)
 
 Jack
 On Fri, 2003-08-22 at 23:40, Jacob A. van Zanen wrote:
  You'll have to look into stripslashes function (of the top of my
head)
 
  PHP automatically puts slashes around variables
 
 
  Jack
  On Fri, 2003-08-22 at 23:35, Joe Walker wrote:
   I've got a form (for sending mail to a user) and the user input is
in
 an
   html form using the post method to pass:
   textarea name=message rows=10 cols=80 wrap=virtual
   along with some other vars to a php page which sends the message
 using:
   mail([EMAIL PROTECTED], $msgSubject, $message, From:
$addyFrom);
  
   But if you type:
   What's it's problem?  I've got flippin' issues!
  
   In the message box, it comes in e-mail as:
   What\'s it\'s problem?  I\'ve got flippin\' issues!
  
   Escaping every apostrophe.
  
   How do I have this not happen?
  
   Thanks in advance.
   Joe
 
 
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

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



[PHP-DB] It\'s wierd when I\'ve used forms...

2003-08-22 Thread Joe Walker
I've got a form (for sending mail to a user) and the user input is in an
html form using the post method to pass:
textarea name=message rows=10 cols=80 wrap=virtual
along with some other vars to a php page which sends the message using:
mail([EMAIL PROTECTED], $msgSubject, $message, From: $addyFrom);
 
But if you type:
What's it's problem?  I've got flippin' issues!
 
In the message box, it comes in e-mail as:
What\'s it\'s problem?  I\'ve got flippin\' issues!
 
Escaping every apostrophe.  
 
How do I have this not happen?   
 
Thanks in advance.
Joe


Re: [PHP-DB] It\'s wierd when I\'ve used forms...

2003-08-22 Thread Jacob A. van Zanen
You'll have to look into stripslashes function (of the top of my head)

PHP automatically puts slashes around variables


Jack
On Fri, 2003-08-22 at 23:35, Joe Walker wrote:
 I've got a form (for sending mail to a user) and the user input is in an
 html form using the post method to pass:
 textarea name=message rows=10 cols=80 wrap=virtual
 along with some other vars to a php page which sends the message using:
 mail([EMAIL PROTECTED], $msgSubject, $message, From: $addyFrom);
  
 But if you type:
 What's it's problem?  I've got flippin' issues!
  
 In the message box, it comes in e-mail as:
 What\'s it\'s problem?  I\'ve got flippin\' issues!
  
 Escaping every apostrophe.  
  
 How do I have this not happen?   
  
 Thanks in advance.
 Joe


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



Re: [PHP-DB] It\'s wierd when I\'ve used forms...

2003-08-22 Thread Jacob A. van Zanen
I mean in front of special characters off course :-)

Jack
On Fri, 2003-08-22 at 23:40, Jacob A. van Zanen wrote:
 You'll have to look into stripslashes function (of the top of my head)
 
 PHP automatically puts slashes around variables
 
 
 Jack
 On Fri, 2003-08-22 at 23:35, Joe Walker wrote:
  I've got a form (for sending mail to a user) and the user input is in an
  html form using the post method to pass:
  textarea name=message rows=10 cols=80 wrap=virtual
  along with some other vars to a php page which sends the message using:
  mail([EMAIL PROTECTED], $msgSubject, $message, From: $addyFrom);
   
  But if you type:
  What's it's problem?  I've got flippin' issues!
   
  In the message box, it comes in e-mail as:
  What\'s it\'s problem?  I\'ve got flippin\' issues!
   
  Escaping every apostrophe.  
   
  How do I have this not happen?   
   
  Thanks in advance.
  Joe
 


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



Re: [PHP-DB] It\'s wierd when I\'ve used forms...

2003-08-22 Thread CPT John W. Holmes
From: Jacob A. van Zanen [EMAIL PROTECTED]
 You'll have to look into stripslashes function (of the top of my head)

 PHP automatically puts slashes around variables

PHP automatically escapes quotes in incoming form data when magic_quotes_gpc
is enabled. If you do not want then, then either disable the setting or use
stripslashes() to remove the escape characters.

---John Holmes...


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