Hi,<br>
i went to http://www.javascriptkit.com/, i copy the HTML at this website http://www.javascriptkit.com/script/script2/formfieldhints.shtml i put the codes at my blog. <br>
But the problem is how do i make the Form Validation to auto send to my email address, with a click of a "Submit" button?<br>
People who knows please help me! This is my Form Validation code, incase i've type wrongly.

~~~~~~~~This codes was placed at the <HEAD> as told~~~~~~

<style type="text/css">

/* All form elements are within the definition list for this example */
dl {
    font:normal 12px/15px Arial;
    position: relative;
    width: 350px;
}
dt {
    clear: both;
    float:left;
    width: 130px;
    padding: 4px 0 2px 0;
    text-align: left;
}
dd {
    float: left;
    width: 200px;
    margin: 0 0 8px 0;
    padding-left: 6px;
}


/* The hint to Hide and Show */
.hint {
   	display: none;
    position: absolute;
    right: -250px;
    width: 200px;
    margin-top: -4px;
    border: 1px solid #c93;
    padding: 10px 12px;
    background: #ffc url(pointer.gif) no-repeat -10px 5px;
}

/* The pointer image is hadded by using another span */
.hint .hint-pointer {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 10px;
    height: 19px;
    background: url(pointer.gif) left top no-repeat;
}
</style>
<script type="text/javascript">
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function prepareInputsForHints() {
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++){
		// test to see if the hint span exists first
		if (inputs[i].parentNode.getElementsByTagName("span")[0]) {
			// the span exists!  on focus, show the hint
			inputs[i].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			// when the cursor moves away from the field, hide the hint
			inputs[i].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
	// repeat the same tests as above for selects
	var selects = document.getElementsByTagName("select");
	for (var k=0; k<selects.length; k++){
		if (selects[k].parentNode.getElementsByTagName("span")[0]) {
			selects[k].onfocus = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "inline";
			}
			selects[k].onblur = function () {
				this.parentNode.getElementsByTagName("span")[0].style.display = "none";
			}
		}
	}
}
addLoadEvent(prepareInputsForHints);
</script>
    </head>  


<style type="text/css">
#navbar-iframe{
display: none;
height: 0;
}
    

</style>
    <body>

~~~~~~~~~~ This codes was placed at the place where i want it to be~~~~~~~~~~~~


<form>
       <dl>
         <dt>

		<label for="name">Name:</label>
	</dt>

		<input
			name="name"
			id="name"
			type="text" />
	</dd>
         <dt>
		<label for="email">Email:</label>
	</dt>

		<input name="email"
			id="email"
			type="text" />



	</dd>
	<dt><label for="contact">Contact:</label></dt>
		<input
			name="contact"
			id="contact"
			type="text" />
	</dd>

		<label for="site url">Site URL:</label>
	</dt>

		<input
			name="site url"
			id="site url"
			type="text" />

	</dd>
         <dt>
		<label for="Product Code/Name">Product Code/Name:</label>
	</dt>

		<input
			name="Product Code/Name"
			id="Product Code/Name"
			type="text" />

	</dd>
         <dt>
		<label for="Quanity">Quanity:</label>
	</dt>

		<input
			name="Quanity"
			id="Quanity"
			type="text" />

	</dd>
         <dt>
		<label for="Size">Size:</label>
	</dt>

		<input
			name="Size"
			id="Size"
			type="text" />
	</dd>
         <dt>

		<label for="Colour">Colour:</label>
	</dt>

		<input
			name="Colour"
			id="Colour"
			type="text" />

	</dd>
         <dt>


	</dt><label for="Mode of Payment">Mode of Payment:</label></dt>

 
		         <select id="Mode of Payment" name="Mode of Payment">
			<option value="">----</option>
			<option value="Bank transfer">Bank transfer</option>
			<option value="Concealed cash ">Concealed cash </option>

			<option value="Meet up">Meet up</option>
			<option value="Mailed Cash">Mailed Cash</option>
			<option value="Others">Others</option>
		</select>

	</dd>
         <dt>
		<label for="Location of Meet up">Location of Meet up:</label>
	</dt>


		<input
			name="Location of Meet up"
			id="Location of Meet up"
			type="text" />

	</dd>
         <dt>
		<label for="Comments">Comments:</label>
	</dt>
<textarea rows=5 cols=21 wrap="virtual" name="text"></textarea>
	<dt class="button">
<form>
<input type="submit" onClick="return checkmail(this.form.Rainb0wDots@hotmail.com)" value="Submit" />

</form>
<br style="clear: left" />

~~~~~~~~~~~~~~~~~Please reply ASAP~~~~~~Thank You~~~~~~~~~~~~~~~~~

Your submit button calls the checkmail() function when it's pressed, but you don't seem to have a checkmail() function defined anywhere. Where did you get that piece of code from?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.