Skip to content
Advertisement

How do fix ‘404 page not found’ error when running a php file?

I am just starting to learn php and when I run my php file, no matter the browser, i get a 404 error. What is my code missing that is causing this? This file is supposed to display a message after a user submits a ‘contact me’ form.

JavaScript

Advertisement

Answer

this code works. see this is firefox: https://i.imgur.com/YeBFt9B.png

JavaScript

if you don’t specify a default value on your parameters from another form you could run into an unexpected error. This version is better 😉

I’m sure you get this error because you have a typo in one of your urls

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