Re: PHP preg_match() help

Would you rather use the urlencode or rawurlencode functions in php to take 
care of the grunge work?
Look them up on php.net
HTH
--le

  ----- Original Message ----- 
  From: Storm Dragon 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Wednesday, July 30, 2008 1:50 AM
  Subject: PHP preg_match() help


  Hi,
  I am having a bit of a problem. I was never good at the PHP preg_match() 
function.  I am working on a website for a client andI need to be able to 
accept anything except ; and space.  Well, actually I really need to make sure 
a url is in proper format.  The problem is, it could be any url and they can be 
so different.  I want to protect against sql injection attacks, so I figured 
getting rid of ; and space would go a log way toward that end.  I suppose no " 
or ' would be good too, I can't think of any urls with either of those in them, 
but it's late and I am tired, so can't be sure.
  Thanks for any help.
  BlueScale

Other related posts: