I saw the following code on the internet:
Request.Form["productcode"]
but I don't know what is the function of Request.Form and the codproduct that it represents? I would appreciate your explanation and use
I saw the following code on the internet:
Request.Form["productcode"]
but I don't know what is the function of Request.Form and the codproduct that it represents? I would appreciate your explanation and use
Taken from the Mozilla Foundation:
All HTML forms start with the element of the following form:
So basically when the form posts to the server, all the inputs inside the form
FORM
are sent to the server in a collection of keystring
valuestring
.When you see
Request.Form["codproducto"]
you are seeing how the server is trying to read a value that was posted under thename
"codproduct". For example