fatal error in php code

Problems with the Windows version of XAMPP, questions, comments, and anything related.

fatal error in php code

Postby Dave A » 15. July 2009 21:06

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.
Dave A
 
Posts: 49
Joined: 02. July 2009 16:07

Re: fatal error in php code

Postby Wiedmann » 15. July 2009 21:12

Fatal error: Call to undefined function escape_data()

There is no PHP function with this name.
(Just look in to the PHP manual)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 210 guests