how do i alter this to alow spaces being entered
Posted: Fri Nov 13, 2009 5:03 pm
when a user enters something in a form it throws up a error if they use a space
how do i alow a it to have a space. also how would i alow it to have a comma as well
how do i alow a it to have a space. also how would i alow it to have a comma as well
if(!preg_match("/^[a-z\d]{0,25}$/i", $_POST[feild1]))
{
// Reshow the form with an error
$feild1_error = "must only contain letter and numbers and be a max characters of 25 in length!<br />";
include 'profileeditform.php';
exit;
}