The php page I’ve added doesn’t upload after completing the online form. Not sure if it’s because I need to tweak my code or because the file type is not supported.
PHP is supported here, but if the the file is over 1MiB, it will be automatically deleted. To fix this, you can separate your files and include() them.
I’ve made some progress. I no longer get a blank page when the form is submitted but I’m still not receiving the data.
I’ve copied the code from another site I designed, which is hosted elsewhere and works fine. So that makes me think there’s something I need to do on this hosting account.
Can you share the PHP file that is called when the form is submitted? Also, if you could share the exact URL of the form that would be helpful as well.
Displaying PHP errors will only work if a PHP error is found. If the error is in the way your code is made, but not considered a PHP error, it will not show. That is why I ask to see the PHP file.
I checked the script and what it does. Looking at the code, I assume that by “upload after completing the online form” you are referring to sending the email with details?
Because PHP mail() is effectively disabled on our servers, so sending emails like this doesn’t work. If you want to send email, you’ll need a third party email provider and something like PHPMailer to send messages with it:
Yes, on premium hosting it will just work. PHP mail() is enabled on premium hosting, and you’ll also get email accounts, webmail, forwarders, IMAP, SMTP and everything else you’d expect.