By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,409 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,409 IT Pros & Developers. It's quick & easy.

HTML form issue.

P: n/a
Hi All,

I am a PHP Newbe, so I think that this problem might have a simple
solution. I have a html page which has a few text boxes. On the top of
the form I have the following line of code:

<form action="ProcessComplimentaryForm.php" method="POST">

Hence when the user clicks submit, my php script
"ProcessComplimentaryForm.php" should be called. In my script I just
have a simple echo statement which tries to display one of the values
in one of the text boxes.

<?php

echo "First Name : \n";
echo $_POST['firstName'];
?>

firstName being the name of one of the text boxes on my html page. When
I click submit on the html page I get the following error message:

-------------------------------------------------------------------------------
Method Not Allowed
The requested method POST is not allowed for the URL
/complimentary.html.
-------------------------------------------------------------------------------

What am I missing here? Is this an issue with the server I am trying to
work on or is it something in the code I have written?

Any help highly appreciated.

Thanks
Jitesh

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I think it is in the hands of your ISP.
Dunno why they did it but talk to them.

Jul 17 '05 #2

P: n/a

jgursah...@gmail.com wrote:
Method Not Allowed
The requested method POST is not allowed for the URL
/complimentary.html.


Where does the url /complimentary.html come into play?
is that the URL of the page with the form?
If so, are you sure you have the closing </form> tag... all the input
tags nested in the proper places, etc..

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.