Click to See Complete Forum and Search --> : email address


dennic
02-18-2003, 07:38 PM
how do i send a form to an email address without using server side scripting?? can i use either html or javascript. here is the scripting i have:

<SCRIPT LANGUAGE="javascript">
<!--

function check() {
c=document.quotes;
if(c.name.value==""){
alert("You must enter your name!");
c.name.focus();
return false;
} else if(c.email.value==""){
alert("You must enter your email address!");
c.email.focus();
return false;
} else if(c.phone.value==""){
alert("You must fill in your phone number!");
c.phone.focus();
return false;
} else {
alert("Your information has been submitted!");
return true;
}
}
//-->
</SCRIPT>

</head>


<body>

<br>
<br>

<!--Start of form-->

<form name="quotes" >

<center>

<!--Table 1-->

<table width="75%">

<tr>
<td>Contact Name:
<td><input type="text" id="name" size="23" > *
</tr>

<tr>
<td>Company Name:
<td><input type="text" id="company" size="23" >
</tr>

<tr>
<td>Email Address:
<td><input type="text" id="email" size="23" /> *

</tr>

<tr>
<td>Phone Number:
<td><input type="text" id="phone" size="23" /> *
</tr>

<tr>
<td>Fax Number:
<td><input type="text" id="fax" size="23" />
</tr>

<tr>
<td>Colours Available:
<td><select id="colour">
<option>Capricorn Buff</option>
<option>Federation Buff</option>
<option>Heritage Pink</option>
<option>Brown/Yellow Banded</option>
<option>Capricorn Sunset</option>
</select>
</tr>

<tr>
<td>Material Type:
<td><select id="materials">
<option>Blocks</option>
<option>Slab</option>
<option>Bricks</option>

</tr>

</table>



<!--End of table 1-->

</center>

<br>
<br>

<center>

<input type="submit" value="Submit" name="quotes" onClick="return check()">

</center>


</form>

pyro
02-18-2003, 08:20 PM
change your form tag to:

<form name="quotes" method="post" enctype="text/plain" action="mailto:you@yourdomain.com">

PeOfEo
02-18-2003, 09:01 PM
Doesn't it also depend on your email? I have never done it without asp.net or cgi. Isn't there a way to make an email driven form? Or is that what you are talking about now? Because I have seen a error message saying this form is email driven blah blah blah