12-21-2007, 10:11 PM
|
#22 (permalink)
|
|
The Wanderer
Join Date: Dec 2007
Posts: 14
Thanks: 0
|
Quote:
Originally Posted by Aaron
so how would I do that? Use
if preg_match() and somethingorothertellingmethatitisn'tblank
?
|
PHP Code:
if (!preg_match('/^[A-Za-z ]+$/', $name) || trim($name)=='') {
$error.="Please, go back and fill out your name. This is your actual name that we will need, not your username.<br>\n";
}
|
|
|
|