View Single Post
Old 08-28-2004, 12:21 PM  
whee
Confirmed User
 
Join Date: Sep 2002
Location: http://www.nightstation.com
Posts: 1,375
Form validation in PHP

Form validation in PHP

When someone enters a string similar to this in my address input field:

Some street 98, 1'st floor.

I get an error due to the ' char. It's substituted by / and a space!
This is no good...

Does anyone have the valid php ereg function to disable or replace the illigal chars like ' & // $ etc etc... ?

If someone enters something like this in a form that submits it to a php page, it errors on me big time.

__________________
http://www.nightstation.com
whee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote