answersLogoWhite

0

Code for post and get in HTML form?

Updated: 12/10/2022
User Avatar

Wiki User

13y ago

Best Answer

// get

First name:

Last name:

Click the "Submit" button and the input will be sent to a page on the server called "form_action.asp".

//post

The form-data can be sent as URL variables (with method="get") or as HTTP post (with method="post").

Notes on the "get" method:

  • This method appends the form-data to the URL in name/value pairs
  • This method is useful for form submissions where a user want to bookmark the result
  • There is a limit to how much data you can place in a URL (varies between browsers), therefore, you cannot be sure that all of the form-data will be correctly transferred
  • Never use the "get" method to pass sensitive information! (password or other sensitive information will be visible in the browser's address bar)

Notes on the "post" method:

  • This method sends the form-data as an HTTP post transaction
  • Form submissions with the "post" method cannot be bookmarked
  • The "post" method is more robust and secure than "get", and "post" does not have size limitations
User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Code for post and get in HTML form?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Where is the HTML code for comments?

You don't need a html code for comments. You just post a comment, or post a comment and wait to see if the uploader approves it.


How does HTML code produce the form displayed in the browser?

As subtle distinction between HTML and browser is that HTML code does not produce the form; the browser produces the form. The browser interprets HTML code to determine how to display page content.


How does HTML code produces the form displayed in the browser?

HTML code has special meanings for special tags. The <form> tag tells the browser that a form is being created.


What is HTML View?

The view of the website in form of HTML is HTML view. It is the basic code you write in text editor.


You want to use the information entered in a form of a HTML file in the PHP file to calculate simple interest tell the code?

Due to technical limitations I cannot post the code here. You can find the code at http://www.technowiki.info/simple_interest.txt .


What is meant by method equals post in HTML language?

method="POST" is a common attribute of the HTML <form> tag. What this does is tells the form that it needs to "post" the data to whatever file you have specified in your "action" attribute of the form tag. So your form tag might look something like this: <form action="receive.php" method="POST">Insert form data here</form> Again, this will tell the form to post all the data that the user has entered into it to the receive.php file.


How does one post a banner web into a website?

You can copy the HTML code of the banner and paste it into your web site's code wherever you want the banner to appear. Another way is to send the HTML code to your web master.


Long form of HTML?

To code HTML, you'll need a text editor such as Notepad or Notepad++. You can write your HTML code in there and save the pages as "something.html". Make sure you have the ".html" extension. If you double click the file you have made, it will open up a web browser and you'll see what your HTML has done.


How does HTML code produce forms in a browser?

HTML has predefined functions. The <form> elements binds all the elements within it.


Why can't MySpace read my HTML code?

Some websites will not accept HTML code in their forms so that malicious users will not be able to hijack the site. Oftentimes, web forms encode HTML so that it is not actually HTML but just plain text. If a web form does not allow HTML then it is possible that it gives another way of editing the look of the text that the form accepts.


What is method in HTML form?

There are two form methods: method="POST" and method="GET" GET makes the page it sends the form info from retrieve it from the URL. POST sends the data, and can handle more characters than GET.


What Is The Code To Show An Html A Text?

<code><code>HTML TEXT HERE</code></code>