HAL-PC Web Technolgies SIG

Mail List | SIG Leader

Form to Database

HAL-PC Web Technologies SIG

Part 2 - Adding Form information to a database:

This is the form being used to add items to the database.



 

Code for the form is:

<div class="group">
<form action="asp_db.asp" method="post" name="comments" id="comments">
<p>
<label for="vname">Name:</label>
<input type="text" name="vname" id="vname" />
<br />
<label for="email">Email:</label>
<input type="text" name="email" id="email" />
<br />
<label for="comment">Comment:</label>
<textarea name="comment" cols="40" rows="8" id="comment"></textarea>
</p>
<p class="ctr">
<input type="submit" name="Submit" value="Submit" />
&nbsp;
<input type="reset" name="Reset" value="Clear" /></p>
</form>
</div>

While the style to display the field and line layout is:

<style type="text/css">
<!--
.group {
padding: .5em;
border: thin solid #000033;
width: 30em;
}
label {
width: 6em;
text-align: right;
padding-right: 1em;
float: left;
}
.ctr {
text-align: center;
}
-->
</style>

About Us | Site Map | Advanced Search | Privacy Policy | Contact Us | ©1999-2006 HAL-PC Web Technologies SIG Leader Cheryl D. Wise