Receiving form information
October 27th, 2008To receive information filled in forms on the website
You will need to use a server-side scripting language like ASP, PHP or JSP.
The form tag is:
<form name=”form1″ method=”post” action=”">
The “method” attribute specifies how the information is to be submitted. There are 2 possibilities - One is called a “get” and the other is called a “post”. Both submit the information but the difference lies in how they submit it. A get would send all information through the url, so this would be visible in the address bar. A post will send all information as part of the http header, and such information will not be visible in the address bar, so it is usually preferred.
The “action” attribute specifies where the information is to be submitted. Here you could provide a simple url for some other (or the same) page which would collect the information using any server side scripting language like ASP, PHP, JSP etc. Alternatively you could also specify an email address (syntax: mailto:test@test.com) so that everytime someone submits this form, the email client will send the email to the email address specified.
If you are primarily concerned with how to collect the information at the server end, I you will need to learn up the basics of any server side scripting language and make sure the web server supports the same. It is important to concentrate on the Request objects (or the closest to that depending on the actual platform you choose). Then start writing code to collect the data and probably store it into a database, where the data can be manipulated.