*** SOLVED *** My PHP form worked fine for years, but after changing...

Issues related to forms.
Post Reply
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

*** SOLVED *** My PHP form worked fine for years, but after changing...

Post 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
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: My PHP form worked fine for years, but after changing...

Post 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...)
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: My PHP form worked fine for years, but after changing...

Post 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
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: My PHP form worked fine for years, but after changing...

Post 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.
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: My PHP form worked fine for years, but after changing...

Post 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. :/
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: My PHP form worked fine for years, but after changing...

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

Re: My PHP form worked fine for years, but after changing...

Post 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
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: My PHP form worked fine for years, but after changing...

Post by Astro »

Here is the .wbs file stripped down to just the 2 pages with broken forms.
www.carbonscopetubes.com/FormProblems.wbs
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: My PHP form worked fine for years, but after changing...

Post 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.
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: My PHP form worked fine for years, but after changing...

Post by Astro »

Ok, thanks for verifying that for me.
DPB
 
 
Posts: 17
Joined: Thu Jan 07, 2021 2:40 pm
Location: Maryland
Contact:

Re: My PHP form worked fine for years, but after changing...

Post by DPB »

Hi
just read this post;
what is SMTP?
Does it replace php on the page containing forms

Thanks
Dwight
Astro
 
 
Posts: 61
Joined: Mon Jul 07, 2014 6:38 pm

Re: RESOLVED My PHP form worked fine for years, but after changing...

Post 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.
User avatar
Pablo
 
Posts: 21574
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: My PHP form worked fine for years, but after changing...

Post by Pablo »

Thanks for clearing that up!
Post Reply