PHP Classes

Error

Recommend this page to a friend!

      Form Validator Class  >  All threads  >  Error  >  (Un) Subscribe thread alerts  
Subject:Error
Summary:Item Error
Messages:2
Author:Oma Cox
Date:2016-06-19 23:59:41
 

  1. Error   Reply   Report abuse  
Picture of Oma Cox Oma Cox - 2016-06-19 23:59:41
# Verify last name --
if( isset( $data['last_name'] ) ) {
if(!preg_match($this->string_exp, $data['first_name'])) {
$i++;
$this->error_message .= $i.'.) The Last Name you have entered does not appear to be valid.<br />';
}
}


if(!preg_match($this->string_exp, $data['first_name'])) { should be

if(!preg_match($this->string_exp, $data['last_name''])) {


  2. Re: Error   Reply   Report abuse  
Picture of Oma Cox Oma Cox - 2016-06-20 00:01:36 - In reply to message 1 from Oma Cox
Correction

if(!preg_match($this->string_exp, $data['last_name'])) {

had two '' at the end of last_name