Validating forms using php

This article will explain the basics in creating an email form that validates the inputs, produces errors when inputs are typed incorrectly, and send an email to you when submitted.

validating forms using php-50

I've only picked up HTML and CSS in the last month, so I'm still relatively new to all of this and I don't really know where to begin when it comes to hosting. Alternately, you could navigate to the file PHP file directly, and it should run.

Hello Kyle, I did some checking on Google Drive and did find the following statement on their page: "Google Drive does not support web resources that make use of server-side scripting languages like PHP." So it looks like Drive is just for basic HTML and CSS, you would need to set up a WAMP environment on your local computer or get a free/cheap hosting plan in order to be able to test your php pages. Such as: you, John-Paul No errors given but it will not send the email. Hello Dan, I would suggest trying the following php code to see if any errors are being suppressed. There may be some compatibility issues but the error reporting will let us know.

If you like, you can also check to ensure it has an @ symbol.

This is not super detailed, but it gives an idea of whether they have entered an email address format in the field.

You should look at your error logs and see if anything has been generated.

Comments