November 8, 201016 yr Hi, Could someone correct this line for me as I'm no coder Thanks if ( ereg( "^(([A-Za-z0-9!#\$%&'*+/=?^_`{|}~-][A-Za-z0-9!#\$%&'*+/=?^_`{|}~\\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))\$", $local_array[$i] ) )
November 8, 201016 yr Is this for a form I presume? The rest is working fine just this line? Regards, J
November 8, 201016 yr Author Thanks, but that not cured it, the page just does not load so something wrong in this code. Just get the session id is too long in the error log. if ( !ereg( "[^@]{1,64}@[^@]{1,255}", $email ) ) { return FALSE; } $email_array = explode( "@", $email ); $local_array = explode( ".", $email_array[0] ); $i = 0; for ( ; $i < sizeof( $local_array ); ++$i ) { if ( ereg( "^(([A-Za-z0-9!#\$%&'*+/=?^_`{|}~-][A-Za-z0-9!#\$%&'*+/=?^_`{|}~\\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))\$", $local_array[$i] ) ) { continue; } return FALSE; } if ( !ereg( "^\\[?[0-9\\.]+\\]?\$", $email_array[1] ) ) { $domain_array = explode( ".", $email_array[1] ); if ( sizeof( $domain_array ) < 2 ) { return FALSE; } $i = 0; for ( ; $i < sizeof( $domain_array ); ++$i ) { if ( ereg( "^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))\$", $domain_array[$i] ) )
Create an account or sign in to comment