validating in php really isn't that hard. i have been using this function for a while. i don't know if it is the best way but it works for me.
function check($fieldname)
{
if(!preg_match("/[^a-zA-Z0-9\.\-\Ä\ä\Ö\ö\Ü\ü\,\
]+$/s",$fieldname)) {
return TRUE;
}
else {
return FALSE;
}
}
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194