Page 1 of 1
Form not working
Posted: Thu Oct 06, 2022 8:56 am
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...?
Re: Form not working
Posted: Thu Oct 06, 2022 9:00 am
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
Re: Form not working
Posted: Thu Oct 06, 2022 9:22 am
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
Re: Form not working
Posted: Thu Oct 06, 2022 10:48 am
by zigleon
Do i have to have an `unsuccessful error` page for it to work
Re: Form not working
Posted: Thu Oct 06, 2022 11:08 am
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.
Re: Form not working
Posted: Thu Oct 06, 2022 11:27 am
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
Re: Form not working
Posted: Thu Oct 06, 2022 12:28 pm
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....?
Re: Form not working
Posted: Thu Oct 06, 2022 12:30 pm
by zigleon
Do you mean `editbox` `textbox` names
Re: Form not working
Posted: Thu Oct 06, 2022 2:36 pm
by Pablo
This applies to all objects.