Web Tools -- Database Tool

The database tool allows you to create web forms that save the results in tab delimited files.  These files can later be downloaded and easily read into a database or spreadsheet program. It allows you to easily set up the web forms without having to write and maintain CGI scripts. The database tool script is currently located at http://webtools.ucdavis.edu/cgi-bin/dbtool.pl (This location may change in the future). However, you should not link to this url directly. You need to use the action option of the <form> HTML tag to use it. You also need to set hidden options in the form. The available options are: You need to create a WWW form using your favorite HTML editor, include the Javascript code from http://webtools.ucdavis.edu/dbtool/dbtool_verify.js, create a form with the action http://webtools.ucdavis.edu/cgi-bin/dbtool.pl and the onSubmit dbtool_verify(this), and add hidden inputs for the options. Below is a simple example of a form using the dbtool. You can copy this to your web server, change the account and filename, change the redirect to one of your pages, and try it out.

You can download the data from the Database Tool Admin Page

Sample webpage HTML code

<HTML>
<SCRIPT SRC="http://webtools.ucdavis.edu/dbtool/dbtool_verify.js">
</SCRIPT>
<FORM METHOD="POST" ACTION="http://webtools.ucdavis.edu/cgi-bin/dbtool.pl" onSubmit="dbtool_verify(this)">
<INPUT SIZE=25 NAME="01name" TYPE=text>
<INPUT SIZE=25 NAME="02email">

User type:
<select name="05type">
<option>Student
<option>Faculty
<option>Staff
</select>

<input type=hidden name="account" value="ccctim">

<input type=hidden name="filename" value="test">

<input type=hidden name="redirect" value="http://webtools.ucdavis.edu/webtools/dbtool/">

<input type=submit value="Send Survey">
<input type=reset value="Reset Form">
</form>
</html>
Notes: Back to Web Tools
Comments: tcleamy@ucdavis.edu
URL: http://webtools.ucdavis.edu/webtools/dbtool/
Last updated:Tue, 20-Mar-2007
Information Technology