Jump to content

Form Coding help needed


epm1013

Recommended Posts

I'm working with a book called "PHP Solutions" by David Powers.

I created a form exactly the way the book describes along with the php to put into my MySQL database. However, I get "Method Not Allowed

The requested method POST is not allowed for the URL /index.html." when I try a test in the form. Can someone suggest where I might have went wrong in my coding?

 

My page is Blogger Institute

Link to comment
https://forums.phpfreaks.com/topic/93898-form-coding-help-needed/
Share on other sites

Hi SemiApocalyptic,

 

 

Thank you for responding so quickly.

 

I'm fairly new to programming so please fogive me here. When you say "file extention" are you meaning my home page Blogger Institute which is saved as a .html or my php file pages that I saved on my hosting?

 

Eric

Well, it looks as though you have 'index.html' in the action attribute of your form. You can't post form data to a HTML form, you have to post it to a script ending with .php

 

You'd definitely help us, help you, if you posted up some code :)

 

Not entirely true. You could write:

 

AddHandler application/x-httpd-php .html

 

to .htaccess and this will allow for html files to handle PHP. I know this isn't relevant here, but thought it should be noted  :D

Well, it looks as though you have 'index.html' in the action attribute of your form. You can't post form data to a HTML form, you have to post it to a script ending with .php

 

You'd definitely help us, help you, if you posted up some code :)

 

Not entirely true. You could write:

 

AddHandler application/x-httpd-php .html

 

to .htaccess and this will allow for html files to handle PHP. I know this isn't relevant here, but thought it should be noted  :D

Yes, that is correct - But based on the question asked, do you really think that is a possibility in this case?

And the knowledge of the programmer.

Hi SemiApocalyptic,

 

 

Thank you for responding so quickly.

 

I'm fairly new to programming so please fogive me here. When you say "file extention" are you meaning my home page Blogger Institute which is saved as a .html or my php file pages that I saved on my hosting?

 

Eric

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.