why is not post method to be used?, post and get method |
why is not post method to be used?, post and get method |
luofeiyu |
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> |
pandy |
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." |
Lo-Fi Version | Time is now: 24th April 2024 - 10:14 AM |