LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > robertspycher
User Name
Password

Notices


Rate this Entry

Programming help

Posted 09-01-2009 at 06:08 AM by robertspycher

Quote:
Originally Posted by graemef View Post
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 ;
}
Thanks a lot. For your help.
I will try it out and come back to you.
Is there any program that can check out such errors/deficiencies?
Rgs
Robert
Posted in Uncategorized
Views 869 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration