RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone
Thanks for your help everyone, I feel pretty embarrassed to have made a mistake like that! :o -Original Message- From: Bojan Gajic [mailto:[EMAIL PROTECTED]] Sent: Sunday, 29 July 2001 12:44 AM To: Matt Stone Subject: Re: [PHP] Stripping single quotes you are not assigning

RE: [PHP] Stripping single quotes

2001-07-28 Thread Michael Hall
Any ideas? Thanks, > > Matt Stone > > -Original Message----- > From: Chris Fry [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 28 July 2001 2:15 PM > To: Matt Stone > Cc: PHP list > Subject: Re: [PHP] Stripping single quotes > > > Matt, > > Try ereg

RE: [PHP] Stripping single quotes

2001-07-28 Thread Matt Stone
Any ideas? Thanks, Matt Stone -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Saturday, 28 July 2001 2:15 PM To: Matt Stone Cc: PHP list Subject: Re: [PHP] Stripping single quotes Matt, Try ereg_replace:- $fldemail == ereg_replace("'","&qu

Re: [PHP] Stripping single quotes

2001-07-27 Thread Chris Fry
Matt, Try ereg_replace:- $fldemail == ereg_replace("'","",$fldemail); Chris Matt Stone wrote: > Hi all, > I am trying to validate some email addresses before they are entered into > the database. > The problem is, some thick or malicious people are entering single quotes > into their email a

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread Web master
use the following code $vals=explode("'", "'abc'"); $your_value=$vals[0]; //I am little confused, if it is not working try index1 Elan wrote: > Hi, > > I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I > strip the embedded single quotes) with a minimum of overhead? > > (In

Re: [PHP] Stripping Single Quotes

2001-03-15 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Elan) wrote: > I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I > strip the embedded single quotes) with a minimum of overhead? If there's no chance that the string could also contain legit single-quotes (such as as an apo