With the code below you can create a optin email form for your site. You will need to make some modifications for it to work with your site. This is just the base code of an email form.

Code:
<script language="JavaScript"> function checkSub(){ 
if (document.signup.email.value.indexOf('@', 0) == -1) { 
alert("Please fill in your correct Email address.\nYour email should be in the following format: [replacer_a]") document.signup.email.focus() 
return false** 
if (document.signup.fname.value == "") { 
alert("Please fill in your First name.") 
document.signup.fname.focus() return false** 
**</script>

 <form action="[replacer_a] method="post" name="signup" onsubmit="return checkSub()"> 
<input name="action" value="addlead" type="hidden" />
<input name="member" value="4240" type="hidden" />
<input name="auto" value="1340" type="hidden" />
<input name="thankyou" value="" type="hidden" /> 
<table border="0" cellpadding="2" cellspacing="0"> 
<tr> 
<td><font face="arial, verdana" size="2">First Name:</font>
</td> 
<td>
<input size="20" name="fname" type="text" />
</td> 
</tr> 
<tr> 
<td><font face="arial, verdana" size="2">Email address:</font>
</td> 
<td>
<input size="20" name="email" type="text" />
</td> 
</tr> 
<tr> 
<td>
<br /> 
</td> 
<td align="center"><input value="Optin Now!" type="submit" />
</td> 
</tr> 
</table> 
</form>




Read more on how to Learn Online Marketing and build a business with the ultimate Internet Marketing Strategy Guide