Form not working in WB12
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
Form not working in WB12
Hi
I have created a site in WB12 using "blocks".
My server supports PHP Version 5.6.31
When I build the site with blocks, and use a "form block", I publish the index.php file, and get this error message.
Parse error: syntax error, unexpected '{' in /home/dmhconce/public_html/index.php on line 68
I have enabled the tick box on the contact block that I dragged into place, and also use the built in form processor.
Not sure where it's going wrong, as I never had the same trouble with WB9, 10?
Any ideas please?
Thank you
I have created a site in WB12 using "blocks".
My server supports PHP Version 5.6.31
When I build the site with blocks, and use a "form block", I publish the index.php file, and get this error message.
Parse error: syntax error, unexpected '{' in /home/dmhconce/public_html/index.php on line 68
I have enabled the tick box on the contact block that I dragged into place, and also use the built in form processor.
Not sure where it's going wrong, as I never had the same trouble with WB9, 10?
Any ideas please?
Thank you
Re: Form not working in WB12
This error indicates that there is an error in your settings.
Please share your project so I can see what you have done.
Please share your project so I can see what you have done.
Re: Form not working in WB12
Thank you Pablo.
How do I send you the file? Where to?
Thanks
How do I send you the file? Where to?
Thanks
Re: Form not working in WB12
1. Upload the file to your website or another public server
2. Share the link
Before you share your project, please remove all custom code, extensions and other non-relevant content.
2. Share the link
Before you share your project, please remove all custom code, extensions and other non-relevant content.
Re: Form not working in WB12
Thank you Pablo.
I have removed the videos to ensure the file is small.
I haven't inserted any custom code - only WB native elements.
You can download the zip here:
http://www.dmhconcepts.co.uk/pablo/
Thanks
I have removed the videos to ensure the file is small.
I haven't inserted any custom code - only WB native elements.
You can download the zip here:
http://www.dmhconcepts.co.uk/pablo/
Thanks
Re: Form not working in WB12
Thanks for sharing the project file.
However I do not see any problems in the code.
What does the PHP code look like for you?
What code is on line 68?
However I do not see any problems in the code.
What does the PHP code look like for you?
What code is on line 68?
Re: Form not working in WB12
Hi Pablo
The only code on line 68 is {
This is the code - from line 68 to line 75, the closing }
{
if ($_FILES[$key]['error'] == 0
{
$body .= '--'.$boundary.$eol;
$body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
$body .= 'Content-Transfer-Encoding: base64'.$eol;
$body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
$body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
}
}
Thanks
The only code on line 68 is {
This is the code - from line 68 to line 75, the closing }
{
if ($_FILES[$key]['error'] == 0
{
$body .= '--'.$boundary.$eol;
$body .= 'Content-Type: '.$_FILES[$key]['type'].'; name='.$_FILES[$key]['name'].$eol;
$body .= 'Content-Transfer-Encoding: base64'.$eol;
$body .= 'Content-Disposition: attachment; filename='.$_FILES[$key]['name'].$eol;
$body .= $eol.chunk_split(base64_encode(file_get_contents($_FILES[$key]['tmp_name']))).$eol;
}
}
Thanks
Re: Form not working in WB12
This code is not complete.
Did you manually edit the code?
Are you using the latest update (12.2.2)?
Did you manually edit the code?
Are you using the latest update (12.2.2)?
Re: Form not working in WB12
Thanks Pablo
No, I haven't manually altered or added any code.
I am using version 12.0.
I will upgrade to the latest version and see if that alters anything.
Thank you
No, I haven't manually altered or added any code.
I am using version 12.0.
I will upgrade to the latest version and see if that alters anything.
Thank you
Re: Form not working in WB12
Hi Pablo
I have downloaded the latest version, and republished.
However, the text is all missing from the beginning of the website, and the formatting of the newly created form is incorrect, so I am unable to test the form.
Can you help please?
Thank you
I have downloaded the latest version, and republished.
However, the text is all missing from the beginning of the website, and the formatting of the newly created form is incorrect, so I am unable to test the form.
Can you help please?
Thank you
Re: Form not working in WB12
Did you publish all files?
What is the URL of the page?
And where exactly do I need to look to see the problem?
What is the URL of the page?
And where exactly do I need to look to see the problem?
Re: Form not working in WB12
Sorry Pablo, my bad, I hadn't published all files.
However
I have now published and tested the form and I am not receiving anything.
Please could you help on this.
http://www.dmhconcepts.co.uk/darren/
Just so I could see if it is the form on the site I have built in WB12, I have built a separate form for testing in WB9, published that on the same server in a different directory, and receive that information straight away.
Thanks
However
I have now published and tested the form and I am not receiving anything.
Please could you help on this.
http://www.dmhconcepts.co.uk/darren/
Just so I could see if it is the form on the site I have built in WB12, I have built a separate form for testing in WB9, published that on the same server in a different directory, and receive that information straight away.
Thanks
Re: Form not working in WB12
Did you read the FAQ?
viewtopic.php?f=10&t=32967
(Emails are not arriving in my inbox...)
Note that this has nothing to do with WB12. Emails are sent by the server, not by the software.
viewtopic.php?f=10&t=32967
(Emails are not arriving in my inbox...)
Note that this has nothing to do with WB12. Emails are sent by the server, not by the software.
Who is online
Users browsing this forum: No registered users and 1 guest