TheBigT
03-04-2005, 11:56 PM
I am currently making a form for feedback. Making the form and making the validation were the easy steps but I want to use only Javascript (because my ISP provides my webspace and it does not allow any server side like PHP) If someone can tell me how to make it send it to the email account that is already in there without having to go through say Microsoft Outlook it would be a lot of help. Here is the code. Thanks in advance.
<script>
<!--
function validate()
{
if ((document.feedback.name.value=="")||
(document.feedback.suggestion.value==""))
{
alert ("Please fill out every field. Thank you.")
return false ;
}
return true ;
}
//-->
</script>
<form action="mailto:allbonz89@comcast.net" method="post" name="feedback" onsubmit="return validate()">
Enter Your Name (*required)<br>
<input type="text" size="20" name="name">
<br>
What you want up here: (*required)
<br>
<textarea name="suggestion" rows="3" cols="25"></textarea>
<br>
<input type="submit" name="B1" value="Submit">
</form>
<script>
<!--
function validate()
{
if ((document.feedback.name.value=="")||
(document.feedback.suggestion.value==""))
{
alert ("Please fill out every field. Thank you.")
return false ;
}
return true ;
}
//-->
</script>
<form action="mailto:allbonz89@comcast.net" method="post" name="feedback" onsubmit="return validate()">
Enter Your Name (*required)<br>
<input type="text" size="20" name="name">
<br>
What you want up here: (*required)
<br>
<textarea name="suggestion" rows="3" cols="25"></textarea>
<br>
<input type="submit" name="B1" value="Submit">
</form>