Skip to content
Advertisement

Is there way to solve blank page php error?

I created a contact page, however when I test it by sending an email to the website’s email (which is a gmail address) it displays a white page

here’s my php code for the contact form

JavaScript

Here’s my html code (contact.html)

JavaScript

Advertisement

Answer

It is happening because you forgot to provide name for submit button in contact.html and in contactform.php it will only check for post event whose name is submit isset ($_POST['submit'])

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement