Html and PHP form not working

Hi all.

I’m trying to make a form, but every time I hit submit whilst testing it, I get a 405 error.

You can find the repo here: https://github.com/GiacomoLaw/web-form

Thanks in advance!

Your code seems right… I’ve googled for 405 error and I’ve found this:
http://www.checkupdown.com/status/E405.html

What are you using on server? LAMP?

1 Like

I’m using it in Github pages.

https://giacomolaw.github.io/web-form/

First sending post requests in github pages is not allowed(the 405 error)
second you try run php in static file web server(github.io), so you can’t you need a php server.

2 Likes

Okay, thank you very much!

You can use Cloud9 : https://c9.io/ if you don’t have a dev machine that works.

1 Like

Or Koding, CodeAnywhere or Codiad :slight_smile:

1 Like

You can also use 000webhost which does work with php. You may also plug-in a MySQL database and create a user login system. East to do.