*SOLVED* Contact Form ruining page-load *SOLVED*

Issues related to forms.
Post Reply
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

*SOLVED* Contact Form ruining page-load *SOLVED*

Post by etcbbu »

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.
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
WWBman
 
 
Posts: 916
Joined: Fri Jan 08, 2010 6:10 pm

Re: Contact Form ruining page-load

Post by WWBman »

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.
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Contact Form ruining page-load

Post by etcbbu »

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.
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: Contact Form ruining page-load

Post by BaconFries »

I've now created a success.php page and an error.php page
Please read from the following:
Should the success and error pages be PHP
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=32967
What is the error on line 28?
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Contact Form ruining page-load

Post by etcbbu »

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.
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
Pablo
 
Posts: 21577
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact Form ruining page-load

Post by Pablo »

I think the error is related to quote in the message string:
Website form from Grant's Roofing Website
this should be:
Website form from Grant\'s Roofing Website
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Contact Form ruining page-load

Post by etcbbu »

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" ?
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: Contact Form ruining page-load

Post by etcbbu »

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 :D :D :D BEST! :D :D :D
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
User avatar
crispy68
 
 
Posts: 2737
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: *SOLVED* Contact Form ruining page-load *SOLVED*

Post by crispy68 »

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. :D
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: *SOLVED* Contact Form ruining page-load *SOLVED*

Post by BaconFries »

Just submitted the form so button seems to be working. Have you fixed it.
User avatar
etcbbu
 
 
Posts: 460
Joined: Mon Apr 23, 2007 3:00 pm

Re: *SOLVED* Contact Form ruining page-load *SOLVED*

Post by etcbbu »

@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 :D :D :D BEST! :D :D :D

--etcbbu
https://ktravisj.com

Travis J Consulting, LLC
⚫️Website Design/Development/Maintenance
⚫️Web-Marketing/Social Media
⚫️SEO/Search Engine Optimization

https://ktravisj.com
Post Reply