Form error

Issues related to forms.
Post Reply
Baltazar
 
 
Posts: 8
Joined: Mon Feb 25, 2013 11:54 am

Form error

Post by Baltazar »

Gentlemen,
   I'm making a form that sends a message, but the error “Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/balta784/public_html/teste/contatos.php on line 39” occurs when calling forms .

The curious and that I have problem with the email of Yahoo, does anyone know the solution ??

Obs. I'm using version 15.4.0

thankful
Form error
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form error

Post by Pablo »

Usually this indicates a syntax error in the settings.
To be able to help you, I need to know all your settings.
Baltazar
 
 
Posts: 8
Joined: Mon Feb 25, 2013 11:54 am

Re: Form error

Post by Baltazar »

What kind of settings, and how do I get them
Thank you
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form error

Post by Pablo »

Baltazar
 
 
Posts: 8
Joined: Mon Feb 25, 2013 11:54 am

Re: Form error

Post by Baltazar »

Follow the link (http://baltazar.eti.br/example) where the project is hosted, the location is also the backup (example.wbs).
The page receives a name, phone, email, email confirmation and a message, these data should be sent to cesar_bastos@yahoo.com.br, when the "Enviar" Enviar" is clicked, and the error below is displayed.
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /home/balta784/public_html/example/index.php on line 39

Thanks
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form error

Post by Pablo »

Firstly, why did you add the extra form script to upload files. This may cause a conflict with the built-in script.
You should either use your own script or the built-in script, not both at the same time.

The error indicates an issue with PHP mailer.
Did you upload all files?
Does the web server support PHP 5.4 or newer?
Baltazar
 
 
Posts: 8
Joined: Mon Feb 25, 2013 11:54 am

Re: Form error

Post by Baltazar »

Dear

     Thanks to your guidance the problem was solved.
   Now I have a question, it is possible that in the email that the forms send, a certain field of the forms is not included in this email.
In my case the field is "Confirme E-mail"

thankful
User avatar
Pablo
 
Posts: 22491
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form error

Post by Pablo »

You can do this by using rich text formatting and variables:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=64476
Post Reply