Form not working

Issues related to forms.
Post Reply
zigleon
 
 
Posts: 32
Joined: Sun Jan 11, 2015 4:04 pm

Form not working

Post by zigleon »

I can't figure out why this form below is not working. Supposed to go to `success page`

https://www.worcestershireweddingphotog ... uk/contact


I have other sites built with WYSIWYG the same and they perfectly.

Any ideas what i've done wrong...?
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form not working

Post by Pablo »

To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

Note that I cannot see what you have done based on the published page (HTML), because the software has thousands of options and millions of possible combinations.
So, there is no way to know which options you have used by looking at the HTML only.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
zigleon
 
 
Posts: 32
Joined: Sun Jan 11, 2015 4:04 pm

Re: Form not working

Post by zigleon »

Thanks for your reply...

I think i've done this right...stripped down version of the problem...

https://www.worcestershireweddingphotog ... k/form.wbs


Thanks again
zigleon
 
 
Posts: 32
Joined: Sun Jan 11, 2015 4:04 pm

Re: Form not working

Post by zigleon »

Do i have to have an `unsuccessful error` page for it to work
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Form not working

Post by BaconFries »

When using a form the page extension should be set to .php you should also have a success and error page these should be .html. I haven't downloaded your project(.wbs) but looked at the html (source) one thing I see is you are using the 'mailto' to send the form please see the following regarding this.
Why shouldn't I use 'mailto' in the form action?
viewtopic.php?f=10&t=32967
I also noticed that you have removed the page extension from the url have you did this through the use of a .htacess file and have you configured it correctly so that the form will get processed by the server.
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form not working

Post by Pablo »

The names of the form input fields are invalid. Names should not contain spaces.

Related FAQ:
https://www.wysiwygwebbuilder.com/forum ... hp?t=64868
zigleon
 
 
Posts: 32
Joined: Sun Jan 11, 2015 4:04 pm

Re: Form not working

Post by zigleon »

Thanks guys.

Removed unwanted code in .htaccess file cured it.

However i don't understand not using mailto:
It's better to use some kind of server side script (have no clue about that)


Doesn't the built-in PHP form processor script take care of everything for me....?
zigleon
 
 
Posts: 32
Joined: Sun Jan 11, 2015 4:04 pm

Re: Form not working

Post by zigleon »

Pablo wrote: Thu Oct 06, 2022 11:27 am The names of the form input fields are invalid. Names should not contain spaces.

Related FAQ:
https://www.wysiwygwebbuilder.com/forum ... hp?t=64868

Do you mean `editbox` `textbox` names
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form not working

Post by Pablo »

This applies to all objects.
Post Reply