Html and PHP form not working

Html and PHP form not working
0.0 0

#1

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!


#2

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?


#3

I’m using it in Github pages.

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


#4

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.


#5

Okay, thank you very much!


#6

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


#7

Or Koding, CodeAnywhere or Codiad :slight_smile:


#8

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.