Page 1 of 1

Form error

Posted: Fri Apr 17, 2020 2:23 pm
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

Re: Form error

Posted: Fri Apr 17, 2020 3:47 pm
by Pablo
Usually this indicates a syntax error in the settings.
To be able to help you, I need to know all your settings.

Re: Form error

Posted: Fri Apr 17, 2020 4:32 pm
by Baltazar
What kind of settings, and how do I get them
Thank you

Re: Form error

Posted: Fri Apr 17, 2020 4:48 pm
by Pablo

Re: Form error

Posted: Fri Apr 17, 2020 6:00 pm
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

Re: Form error

Posted: Fri Apr 17, 2020 6:23 pm
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?

Re: Form error

Posted: Fri Apr 17, 2020 7:56 pm
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

Re: Form error

Posted: Fri Apr 17, 2020 8:17 pm
by Pablo
You can do this by using rich text formatting and variables:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=64476