Programming help
Posted 09-01-2009 at 06:08 AM by robertspycher
Quote:
There would appear to be two opening braces '{' which have not been closed, these are on line 142 and 145. You will need to go back to the original script to see where the close braces should be.
Code:
if ( preg_match( "/[\r\n]/", Tipo_Vehiculo ) || preg_match( "/[\r\n]/", Marca_Vehiculo ) || preg_match( "/[\r\n]/", Modelo-Vehiculo ) || preg_match( "/[\r\n]/", Tipo-Modelo ) || preg_match( "/[\r\n]/", Cilindrada_CC ) || preg_match( "/[\r\n]/", No_Motor ) || preg_match( "/[\r\n]/", Carburante_fuel ) || preg_match( "/[\r\n]/", Carroceria_Vehiculo ) || preg_match( "/[\r\n]/", Chasis_VIN ) || preg_match( "/[\r\n]/", Year_Ano ) || preg_match( "/[\r\n]/", Tipo_Caja ) || preg_match( "/[\r\n]/", Conjunto_Vehi ) || preg_match( "/[\r\n]/", Nombre_Repuesto ) || preg_match( "/[\r\n]/", Numero_Repuesto ) || preg_match( "/[\r\n]/", Descripcion_Repuesto ) || preg_match( "/[\r\n]/", Repuesto_Nuevo ) || preg_match( "/[\r\n]/", Repuesto_Usado ) || preg_match( "/[\r\n]/", Cantidad_Repuesto ) || preg_match( "/[\r\n]/", Contact_Title ) || preg_match( "/[\r\n]/", Contact_FirstName ) || preg_match( "/[\r\n]/", Contact_LastName ) || preg_match( "/[\r\n]/", Contact_Direccion ) || preg_match( "/[\r\n]/", Contact_Direccion2 ) || preg_match( "/[\r\n]/", Contact_Ciudad ) || preg_match( "/[\r\n]/", Contact_Estado ) || preg_match( "/[\r\n]/", Contact_Pais ) || preg_match( "/[\r\n]/", Contact_Phone ) || preg_match( "/[\r\n]/", Contact_FAX ) || preg_match( "/[\r\n]/", Contact_Email ) || preg_match( "/[\r\n]/", Contact_Email1 ) ) { // <---### HERE header( "Location: $errorurl" ); exit ; if (strlen( $my_recaptcha_private_key )) { // <---### AND HERE require_once( 'recaptchalib.php' ); $resp = recaptcha_check_answer ( $my_recaptcha_private_key, $_SERVER['REMOTE_ADDR'], $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field'] ); if (!$resp->is_valid) { header( "Location: $errorurl" ); exit ; }
I will try it out and come back to you.
Is there any program that can check out such errors/deficiencies?
Rgs
Robert
Total Comments 0