The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> why is not post method to be used?, post and get method
luofeiyu
post Jan 9 2014, 04:20 AM
Post #1





Group: Members
Posts: 1
Joined: 9-January 14
Member No.: 20,198





GET - Requests data from a specified resource
POST - Submits data to be processed to a specified resource

why in the following html file ,it means to send message to server ,why post method to be used,there is no message to get from the server.in my opinion, only post method can be used in the following html.

in http://www.w3schools.com/html/tryit.asp?fi...tml_form_submit

<!DOCTYPE html>
<html>
<body>

<form name="input" action="html_form_action.asp" method="get">
First name: <input type="text" name="FirstName" value="Mickey"><br>
Last name: <input type="text" name="LastName" value="Mouse"><br>
<input type="submit" value="Submit">
</form>

<p>If you click the "Submit" button, the form-data will be sent to a page called "html_form_action.asp".</p>

</body>
</html>

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 9 2014, 11:00 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Not my forte, but there's more to it than that.
http://htmlhelp.com/faq/cgifaq.2.html#9
http://www.cs.tut.fi/~jkorpela/forms/methods.html

I too would think post would be the method to use for that form, but I'm not sure how important that is.

"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."
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 10:14 AM