i have the following code:
- Code: Select all
if (eregi ('^[[:alpha:]\.\' \-]{2,15}$', stripslashes(trim($_POST['first_name'])))) {
$fn = escape_data($_POST['first_name']);
} else {
$fn = FALSE;
echo '<p><font color="red" size="+1">Please enter your first name!</font></p>';
}
and get back the following error:
Fatal error: Call to undefined function escape_data() in C:\xampp\htdocs\reg\7\register.php on line 18
can any one help? thanks.