Page 1 of 1

fatal error in php code

PostPosted: 15. July 2009 21:06
by Dave A
should i go to php forum.
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.

Re: fatal error in php code

PostPosted: 15. July 2009 21:12
by Wiedmann
Fatal error: Call to undefined function escape_data()

There is no PHP function with this name.
(Just look in to the PHP manual)