A
Atirya Yodha
Hi All,
I am relatively new to HTML. Just started using
FORMs in HTML. What is the difference between
using the GET method as the METHOD attribute of the
FORM tag from the POST method ?
I actually observed that whenever GET is used ,
with ACTION to some jsp :
In welcome.html :
<FORM action="first.jsp" method="get">
then the URL is appended with the <key,value >
pair of the form element names and their values
as entered by the user while if I use :
<FORM action="first.jsp" method="post">
then , the URL remains unchanged .
But what technically is the difference here between
GET and POST ?
Also in first.jsp , if i have something like :
<form action="welcome.html" method="post">
<input type="submit" value="Return">
</form>
on clicking on Return, I get an error :
Method Not Allowed
The requested method POST is not allowed for the URL /welcome.html.
But when I change the method to GET , then I am able to go back
by clicking the Return button.
Why is this so ?
Thanks,
Atirya
I am relatively new to HTML. Just started using
FORMs in HTML. What is the difference between
using the GET method as the METHOD attribute of the
FORM tag from the POST method ?
I actually observed that whenever GET is used ,
with ACTION to some jsp :
In welcome.html :
<FORM action="first.jsp" method="get">
then the URL is appended with the <key,value >
pair of the form element names and their values
as entered by the user while if I use :
<FORM action="first.jsp" method="post">
then , the URL remains unchanged .
But what technically is the difference here between
GET and POST ?
Also in first.jsp , if i have something like :
<form action="welcome.html" method="post">
<input type="submit" value="Return">
</form>
on clicking on Return, I get an error :
Method Not Allowed
The requested method POST is not allowed for the URL /welcome.html.
But when I change the method to GET , then I am able to go back
by clicking the Return button.
Why is this so ?
Thanks,
Atirya