Page 1 of 1
*** SOLVED *** My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 4:42 pm
by Astro
Hi everyone!
My PHP forms worked fine for years, but after changing a few input controls, I no longer get the form data emailed to me. I did not change any of the form properties, just a few of the controls within the form. The submit is successful, but no email arrives.
As a test, I removed the PHP function and simple used mailto: and that worked fine.
Here is the page:
https://carbonscopetubes.com/Custom_Sizes.php (desktop version only)
Please help,
---Frank
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 4:49 pm
by Pablo
I cannot see what you have done based on the published page.
But it looks like you have used quotes in the field names. This is not allowed because this will break the structure of the HTML page.
Also, this FAQ may be helpful:
https://www.wysiwygwebbuilder.com/forum ... 10&t=32967
(Emails are not arriving in my inbox...)
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 5:12 pm
by Astro
I'm having the same problem with this page and there are no quotes in the fields. I just changed a few styles on this page, nothing more.
https://carbonscopetubes.com/Custom_Tooling.php
I read the details in the FAQ. My old version 12.5.2 does not have the "from:" option in Form Processor Properties. I never had this problem before.
---Frank
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 6:12 pm
by Pablo
It is difficult to help you without seeing your settings.
If you need further assistance then please share a demo project.
But you may also need to contact your webhost to ask why the email is not sent. They may have changed something on the server side.
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 7:50 pm
by Astro
I contacted my webmaster but he's on the road for another 20 hours.
I don't know how to post a demo project. :/
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 7:52 pm
by Astro
Pablo wrote: Sun Feb 14, 2021 6:12 pm
It is difficult to help you without seeing your settings.
If you need further assistance then please share a demo project.
But you may also need to contact your webhost to ask why the email is not sent. They may have changed something on the server side.
The server setting must not have changes since this site with a similar form works fine. I have not touched this one:
https://m.carbonscopetubes.com/large_dia_tubes.php
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 7:59 pm
by BaconFries
Please read this first about sharing a demo. In your case probably just the page(s) with the form save as you would normally give it a new such as demo.wbs. Upload it to your server and provide a url to be able to download from. Alternatively upload to the likes of Mediafire and provide the generated url.
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 8:33 pm
by Astro
Here is the .wbs file stripped down to just the 2 pages with broken forms.
www.carbonscopetubes.com/FormProblems.wbs
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 8:58 pm
by Pablo
I could not find any issues in your form. The generated code is valid.
Also, if it has previously worked then it's unlikely that this is directly related to the software.
Usually if a form suddenly stopped working then this is because the web host has changed something.
So you will need to contact your webhost and ask them why the email is not sent.
They should be able to see this based on their logs.
Based on this information you can then change the settings.
For example, many webhosts now require you to use SMTP for sending emails.
Re: My PHP form worked fine for years, but after changing...
Posted: Sun Feb 14, 2021 9:03 pm
by Astro
Ok, thanks for verifying that for me.
Re: My PHP form worked fine for years, but after changing...
Posted: Mon Feb 15, 2021 11:36 pm
by DPB
Hi
just read this post;
what is SMTP?
Does it replace php on the page containing forms
Thanks
Dwight
Re: RESOLVED My PHP form worked fine for years, but after changing...
Posted: Tue Feb 16, 2021 3:59 am
by Astro
Pablo wrote: Sun Feb 14, 2021 8:58 pm
I could not find any issues in your form. The generated code is valid.
Also, if it has previously worked then it's unlikely that this is directly related to the software.
Usually if a form suddenly stopped working then this is because the web host has changed something.
So you will need to contact your webhost and ask them why the email is not sent.
They should be able to see this based on their logs.
Based on this information you can then change the settings.
For example, many webhosts now require you to use SMTP for sending emails.
It was indeed an email server issue. The form was sending from an address that didn't exist (
webmaster@carbonscopetubes.com) so the server blocked it. My version of WB 12.5.1 didn't have the feature that allowed me to change that so my webmaster set up an email to match. All is well now.
Re: My PHP form worked fine for years, but after changing...
Posted: Tue Feb 16, 2021 7:03 am
by Pablo
Thanks for clearing that up!