good guess is you have one of the following errors/mistakes/bugs:
just to name a few
You can used various methods for retrieving data in HTML. JavaScript, Servlets etc are some ways to get data.
Method refers to the way that the data is transferred. It can either be GET or POST. Actions refers to the page in which the form data is sent.
// getFirst name: Last name: Click the "Submit" button and the input will be sent to a page on the server called "form_action.asp".//postThe 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 pairsThis method is useful for form submissions where a user want to bookmark the resultThere 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 transferredNever 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 transactionForm submissions with the "post" method cannot be bookmarkedThe "post" method is more robust and secure than "get", and "post" does not have size limitations
In a web form, the "action" attribute specifies the URL to which the form data will be sent when the form is submitted. The "method" attribute indicates the HTTP method to be used for sending the data, commonly "GET" or "POST." The "GET" method appends the form data to the URL, while "POST" sends it in the request body, making "POST" more suitable for sensitive or large amounts of data. Together, these attributes define how and where the form data is processed.
"post" method
You can used various methods for retrieving data in HTML. JavaScript, Servlets etc are some ways to get data.
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.
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.
This can be accomplished by submitting the form data using the POST method.
Method refers to the way that the data is transferred. It can either be GET or POST. Actions refers to the page in which the form data is sent.
// getFirst name: Last name: Click the "Submit" button and the input will be sent to a page on the server called "form_action.asp".//postThe 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 pairsThis method is useful for form submissions where a user want to bookmark the resultThere 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 transferredNever 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 transactionForm submissions with the "post" method cannot be bookmarkedThe "post" method is more robust and secure than "get", and "post" does not have size limitations
The post method. ( As opposed to the get method ).
Both the get and post method send data from client to server. The problem with get method is data is shown in the URL and hence it is not secure & only a fixed amount of characters can be sent across servers by using get method On the other hand post has no such constraints on amount of data sent and there is no data shown in the URL. By and large use the POST or REQUEST methods for sending or receiving data
In a web form, the "action" attribute specifies the URL to which the form data will be sent when the form is submitted. The "method" attribute indicates the HTTP method to be used for sending the data, commonly "GET" or "POST." The "GET" method appends the form data to the URL, while "POST" sends it in the request body, making "POST" more suitable for sensitive or large amounts of data. Together, these attributes define how and where the form data is processed.
In the context of web development, the POST process is a request method used to submit data to the server for processing. It sends data in the body of the request, allowing for more data to be transferred compared to the GET method. The server processes the data sent through POST and can then respond accordingly.
The HTML tag helps us create and use a HTML user input form. Some of the important properties of a form are:action - Where to send the data once the form is submitted (Usually a servlet)method - determines the submission type (Usually get or post)name - name of the form
"post" method