Hi all,
Working on a new website for a new client with a placeholder-site already loaded at the permanent .com address and web-space.
But I'd like to add a Contact Form to this placeholder site.
Whenever I attempt to do it, I get an error message which you see when you try to load the site here:
https://www.ktravisj.com/grantsroofingtx
And here is the project-file for you to take a look and see what's going wrong; it looks like a PHP code error Line 28:
https://www.ktravisj.com/grantsroofingtx/proj.zip
I know it's related to the Contact Form. Is it anything to do with the success page and error page cannot both be set to the same page [index.php ] ?
Can you please post here to let me know you have successfully downloaded this proj.zip file so that I can delete it from my web-space?
God bless.
*SOLVED* Contact Form ruining page-load *SOLVED*
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
*SOLVED* Contact Form ruining page-load *SOLVED*
Last edited by etcbbu on Tue Aug 03, 2021 3:02 pm, edited 1 time in total.
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Re: Contact Form ruining page-load
The Success and Error pages should be two separate pages, not the index page.
The Error page should not contain any php.
From Notes:
Success page (required)
The page that the user will be redirected to after the data has been submitted (after the 'submit' button has been pressed).
It is possible to display the submitted data on the success page. Please read 'Process variables in Success Page' below for more details.
Error page (required)
The page that the user will be redirected to if an error occurred while processing the data.
Note that the error page should not contain any PHP code. Also it should be in the same folder as the form page.
To display the error message generated by the form script, insert a text object to the page and enter this text somewhere in the text ##error##
The form processor will replace ##error## with the actual error message. Error messages can be customized via User defined variables.
The Error page should not contain any php.
From Notes:
Success page (required)
The page that the user will be redirected to after the data has been submitted (after the 'submit' button has been pressed).
It is possible to display the submitted data on the success page. Please read 'Process variables in Success Page' below for more details.
Error page (required)
The page that the user will be redirected to if an error occurred while processing the data.
Note that the error page should not contain any PHP code. Also it should be in the same folder as the form page.
To display the error message generated by the form script, insert a text object to the page and enter this text somewhere in the text ##error##
The form processor will replace ##error## with the actual error message. Error messages can be customized via User defined variables.
Re: Contact Form ruining page-load
Thanks for the response, but if I can't get the page to publish, how can I get a Text-object to show a message on the front-end of my index.php page?
I've now created a success.php page and an error.php page; and then for the form on the index.php page I designated the two in their correct place in the "Properties" dialog box for the Form; yet I am still getting this "Line 28" error when trying to load the page.
You can still look at my project-file on the same links I gave above. Please have a look and let me know what's wrong.
I've now created a success.php page and an error.php page; and then for the form on the index.php page I designated the two in their correct place in the "Properties" dialog box for the Form; yet I am still getting this "Line 28" error when trying to load the page.
You can still look at my project-file on the same links I gave above. Please have a look and let me know what's wrong.
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
- BaconFries
-
- Posts: 5371
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Contact Form ruining page-load
Please read from the following:I've now created a success.php page and an error.php page
Should the success and error pages be PHP
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=32967
What is the error on line 28?
Re: Contact Form ruining page-load
Here's what it says:
Parse error: syntax error, unexpected 's' (T_STRING) in /homepages/6/d310230039/htdocs/grantsroofingtx/index.php on line 28
And that's fine, what y'all are saying about the "Make the error page and success pages html and not php" , but I'm just saying that I've done a ton of these websites on this same web-host where I have made the success and error pages .php and there have been no problems before. This is a first for me right now, making the success and error pages .html . Done a ton as .php before with no errors.
Parse error: syntax error, unexpected 's' (T_STRING) in /homepages/6/d310230039/htdocs/grantsroofingtx/index.php on line 28
And that's fine, what y'all are saying about the "Make the error page and success pages html and not php" , but I'm just saying that I've done a ton of these websites on this same web-host where I have made the success and error pages .php and there have been no problems before. This is a first for me right now, making the success and error pages .html . Done a ton as .php before with no errors.
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Re: Contact Form ruining page-load
I think the error is related to quote in the message string:
this should be:Website form from Grant's Roofing Website
Website form from Grant\'s Roofing Website
Re: Contact Form ruining page-load
Pablo,
Looking better, we're almost there, thank you. Please visit this page, folks, because something still isn't working:
https://grantsroofingtx.com/
You cannot select the "Submit" Button. I have updated the project file to illustrate what the .WBS project-file is now:
https://ktravisj.com/grantsroofingtx/proj.zip
Plese help me. Why in the world wouldn't that button be able to be "Clicked" or "Tapped" to "Submit" ?
Looking better, we're almost there, thank you. Please visit this page, folks, because something still isn't working:
https://grantsroofingtx.com/
You cannot select the "Submit" Button. I have updated the project file to illustrate what the .WBS project-file is now:
https://ktravisj.com/grantsroofingtx/proj.zip
Plese help me. Why in the world wouldn't that button be able to be "Clicked" or "Tapped" to "Submit" ?
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Re: Contact Form ruining page-load
Welp. I hate myself. AAALLLLLLL those Form objects were appended not to my Form, but to my Layer. Dumb [on my part] .
Thank y'all for helping me get this completed. I've got it 100% working well; and messages are being delivered successfully, whether user attempts to "Submit" via a Laptop/Desktop size breakpoint, or the 320 breakpoint from a smartphone.
Thank y'all so much! WYSIWYG Web Builder is the BEST!
Thank y'all for helping me get this completed. I've got it 100% working well; and messages are being delivered successfully, whether user attempts to "Submit" via a Laptop/Desktop size breakpoint, or the 320 breakpoint from a smartphone.
Thank y'all so much! WYSIWYG Web Builder is the BEST!
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Re: *SOLVED* Contact Form ruining page-load *SOLVED*
It doesn't look like your button (and the rest of the form) is actually part of the form itself but the layer.
edit: You figured it out while I was typing this.
edit: You figured it out while I was typing this.
- BaconFries
-
- Posts: 5371
- Joined: Thu Aug 16, 2007 7:32 pm
Re: *SOLVED* Contact Form ruining page-load *SOLVED*
Just submitted the form so button seems to be working. Have you fixed it.
Re: *SOLVED* Contact Form ruining page-load *SOLVED*
@crispy68 - naw man, you get the big-credit on that one; it was when you first submitted your post here, and I saw it before you either deleted or edited your response. I wouldn't have caught it at the moment I did without your first posting that; you rock.
@BaconFries , @Pablo , @WWBman -- y'all helped me along with crispy, thank you so much. I love WYSIWYG Web Builder, and love this community!
WYSIWYG Web Builder is the BEST!
--etcbbu
@BaconFries , @Pablo , @WWBman -- y'all helped me along with crispy, thank you so much. I love WYSIWYG Web Builder, and love this community!
WYSIWYG Web Builder is the BEST!
--etcbbu
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com
Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization
https://ktravisj.com