When collecting data from a web form, there are several options available to a web developer. One option is to display the data on a webpage. Another is to have it sent to an e-mail address. One of the best options available is to transfer the data on the form to a database. Not only will it allow more data to be collected, but it also lets you store and organise the data in a way that facilitates better data retrieval.
- Skill level:
Other People Are Reading
Things you need
- HTML editor
- PHP or ASP Web hosting account
Create a database. Note down the input fields on your existing web form. For example, if your form contains fields for "Name," "Address," "Email" and "Phone Number," create these corresponding fields in your database.
Create a form handling page. This will contain scripts that will connect the web form to your database and store the entered information. You will need to use programming languages such as ASP or PHP along with SQL to create a script to have the data stored in your database.
Edit your web form. Using an HTML editor such as MS Frontpage or Dreamweaver, change your "<form>" tag to submit to your form handling page. For example, if your form handling page is named "formhandler.php," the "<form>" tag will look like this:
<form name="input" action="formhandler.php" >
Save your web form and form handling page and upload it to your web hosting account.
Tips and warnings
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for