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" />
<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>