blackbelt080
09-25-2003, 11:03 AM
Here is the code:
//Handle the form
require_once (".//../mysql_connect.php"); //Connect to the db
//Check for the first name
if (eregi('^[:alpha:]'. "{2,15}$", stripslashes(trim("$_POST['first_name']")))); {
$fn = escape_data("$_POST['last_name']");
} else {
$fn = FALSE;
echo "<p><font color = "red" size = "+1">Please enter your last name!</font></p>";
}
Take care,
Lori :P
//Handle the form
require_once (".//../mysql_connect.php"); //Connect to the db
//Check for the first name
if (eregi('^[:alpha:]'. "{2,15}$", stripslashes(trim("$_POST['first_name']")))); {
$fn = escape_data("$_POST['last_name']");
} else {
$fn = FALSE;
echo "<p><font color = "red" size = "+1">Please enter your last name!</font></p>";
}
Take care,
Lori :P
