Hey crew, hope you are well - haven't logged on in a while...
Am tinkering with a new site and having issues with the email form.
Form works fine with same config on a different website, however on this site in question I'm getting PHP errors causing the site fall over this only seems to happen on iphone/mobile for some reason. Seems to work kind of OK on browser.
Initially on browser, when I click submit, an image loading sign appears and doesn't forward to thanks page although email sends fine.
Tried a work-around by an on-screen alert to say message sent instead. Again seems to work fine on lappy but erroring on iphone.
Trying to find work arounds and tweaks, can I host the php file / PHP Mailer pack on a different website? Will that cause potential issues with spam filters if domain and email not the same?
Or could there be a piece of JS or something that's pushing my php script to load on page load, rather than on submit? And if so, what kind of code would this look like?
Confused.com