Jump to content

Validate input from form.


Cod-nes

Recommended Posts

One minor change to allow upper-case letters:$bValid=preg_match('/^[0-9a-zA-Z]+$/i',$sString);

Link to comment
Share on other sites

One minor change to allow upper-case letters:$bValid=preg_match('/^[0-9a-zA-Z]+$/i',$sString);
The i modifier means case-insensitive.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...