this is my html /php form but every time i click submit it says
the metod post is not alowed how can i fix this -
<!-- Form made by cody.m -->
-
<center>
-
<FORM METHOD="POST" ACTION="test.php">
-
<font color="red">*</font>First Name: <INPUT TYPE="text" VALUE="Joe king" SIZE="20" onFocus="this.value=''">
-
-
<font color="red">*</font>E-Mail: <INPUT TYPE="text" VALUE="removed email address" SIZE="30" onFocus="this.value=''">
-
-
</p>
-
<center>
-
<pre>Comments or feedback:</pre><TEXTAREA NAME="comment" ROWS=10 COLS=50></TEXTAREA>
-
<BR>
-
</center>
-
<INPUT TYPE="submit">
-
<INPUT TYPE="reset">
-
-
</form>
-
-
</center>
-
<!-- END OF "Form made by cody.m" -->
4 2688
What says the method 'post' is not allowed? Is your web browser saying this? Or is PHP saying this? I'm guessing it's your web browser. If so, what browser are you using? Internet Explorer? Firefox? Safari? Have you tried it in a different browser?
Your code is very old fashioned (that's the way web pages were written 5 years ago), but it should work.
Apart from you need:
name="give_me_a _name"
on each of your <input tags. Otherwise you wont be able to use php to get the values that the user enters. (You'll need $_POST['name_you_gave_ it'] to get the value.)
Also, I'd recommend getting rid of
onFocus="this.v alue=''"
That will probably piss people off when they try to use it.
Markus 6,050
Recognized Expert Expert
codyshea2000,
When posting code in the forums, it is required that you wrap the code in [code] tags. You can do this by simply highlighting the code and then hitting the '#' button at the top of our editor (where you write your post). Doing this formats your code and, in return, helps our experts read it and give an answer.
If you have any doubts, you can have a look over our Posting Guidelines to get familiar with the rules.
Thanks,
Moderator.
Atli 5,058
Recognized Expert Expert
codyshea2000,
I have changed the title of this thread to better describe it's contents.
Using phrases like "help me please!" as a thread title is not allowed. (See Use a good thread title for more info on how to make a good title).
When posting in these forums, you are required to follow the Posting Guidelines.
This is NOT optional, and failure to do so will eventually lead to a ban on your account.
Make sure to you follow them when posting here in the future. Moderator
Codyshea, you sent me a personal message or something? I can't find it now, but you said you were using Firefox.
I've tried your code and it seems to work. Although there seems to be a stray </p> tag on line 8. It's not effecting anything, but you should take it out.
Are you sure there isn't something somewhere else in your page that's causing the problem?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Rob |
last post by:
THis is my code. What im trying to accomplish is the user fills out
the form then when they hit submit it displays what the entered on the
samne page but i get this error message when I hit submit
Method Not Allowed The requested method POST is not allowed for the
URL /rob.html.
Here is the code. Any helpis greatly appreciated I cant figure this
out at all i have tried so many different combinations.
|
by: mickbw |
last post by:
I am unable to display PHP pages generated by a submission of a form
using a POST method. To illustrate this, I created a very simple form
called TestForm.php .
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
|
by: |
last post by:
A friend of mine has a website that is ASP. I know nothing about ASP. He switched hosting and now his "contact us" form does not work. When you hit submit it gives an error "Error 405 Method not allowed" that "post" method is not allowed? I looked at the code which is: <form action="send_email.asp" method="post" onSubmit="return checkform();"> . Its there a file or application missing with the new hosting company? Any help would be greatly...
|
by: RK |
last post by:
I am getting the "HTTP /1.1 405 - method not allowed" error when I am
sending XML string over Msxml2.XMLHTTP object. I am sending data in
POST, also passing querystring variable and here is the code. Also
error comes only sometimes.
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
xmlhttp.Open("POST", "test.aspx?qsVar="+qsVar, false);
xmlhttp.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
xmlhttp.Send(xmldoc);
|
by: GlennLanier |
last post by:
Hello, I've searched the forums and can't find an answer -- if it i
there, kindly point me in that direction.
I would like to simulate a browser POSTing a FORM and be able to pars
the response.
I have the following code in my Page_Load (litResponse is defined a
<ASP:Literal>):
| |
by: Luis Esteban Valencia |
last post by:
Hello I got this program and this error.
Unable to complete web request. Web Exception error: Error en el servidor
remoto: (405) Método no permitido
Its supposed to send xml messages to a biztalk assembly and then it should
drop them on a folder. but I got that error.
Questions.
1. The VirtualFolder HTTPReceiver must be integrated or anonymous
authentication in IIS Manager.
|
by: John |
last post by:
Hi,
I am getting this error message
The remote server returned an error: (405) Method Not Allowed.
while trying to execute the following code:
Dim myReq As HttpWebRequest =
WebRequest.Create("http://127.0.0.1/virtualdirectory/")
|
by: Bjorn |
last post by:
Hi.
Every time i post data in a form the contents are being checked for
validity.
When i click the back-button, all data is gone and i have to retype it.
It's obvious that only a few or none of the visitors will retype it all
so i'm asking: "how to preserve POST-data when clicking the
back-button?"
i've already tried to print post data as a value in a HTML tag but
|
by: Kurda Yon |
last post by:
Hi,
I have to decide which form-method I should use (GET or POST). I found
the following recomendation:
If the service associated with the processing of a form has side
effects (for example, modification of a database or subscription to a
service), the method should be POST. (http://www.cs.tut.fi/~jkorpela/
forms/methods.html).
However, later I did not find any convinced arguments why it should
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |