RE: [PHP] Maintain and ' in html textfields - REPLY

2003-03-04 Thread Daniel Guerrier

I forgot to mention that I'm use add and stripslash
on
the data so magic quotes wouldn't help.  The problem
is the  from the text is closing the  from the
html.
 
 --- Bryan Lipscy [EMAIL PROTECTED] wrote:
  Look up magic quotes in the docs.
 

http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
  
  
  
  The docs are mmm mmm good.
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more
 http://taxes.yahoo.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



RE: [PHP] Maintain and ' in html textfields - REPLY

2003-03-04 Thread Bryan Lipscy


http://www.php.net/manual/en/function.preg-quote.php

preg_quote($var, '\'')
preg_quote($var, '')

Thank you for asking this question.  I learned something new.  This
looks like a good way to mitigate SQL Injection attacks as well.



-Original Message-
From: Daniel Guerrier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2003 8:13 PM
To: 'php user group'
Subject: RE: [PHP] Maintain  and ' in html textfields - REPLY



I forgot to mention that I'm use add and stripslash
on
the data so magic quotes wouldn't help.  The problem
is the  from the text is closing the  from the
html.
 
 --- Bryan Lipscy [EMAIL PROTECTED] wrote:
  Look up magic quotes in the docs.
 

http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc
  
  
  
  The docs are mmm mmm good.
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - forms, calculators, tips, more 
 http://taxes.yahoo.com/
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


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