I have (yet) a web page in Hostinger, and yesterday I “created” the same page in 000webhost, meaning I transfered the files index.html (includes code: form class=“form” method=“post” action=“contact.php”) + contact.php + kiitoksia.html (the page which user gets when submits the form) with FTP (made no changes to the original page)… and all went well, except my feedback form stopped working.
I changed contact.php R/W rights as 777, as well as .htaccess rights, but the form wont work. I wonder, is there in 000webhost a possibility to enable/disable php code? Meaning, why the same code works in Hostinger?
About “kiitoksia.html”, it’s the same as index.html (both UTF-8) but contains less info. In php file, tried to change this: header(“Location: ./*kiitoksia.html”)**; to this: header(“Location: kiitoksia.html”); , no effect.
If it helps, I give You the php code (your platform disables html-code at least in preview-window) and result after Submit (the example-myemail.com is a fake, don´t want to give my real email here =):
Just in case, if anyone’s interested - I give up on that recent PHP and made it simpler (also dropped out phone number & subject, not needed in my form and instead of thank.html I “echoed” message when submitted)…this is simple, easy and it works: