Here is a form that I have tried to build. I dont remember where I got the code, but I just edited to say what I want. The problem I have with this code is that when I click submit, it opens up windows live email or whatever and I just want it to send the form to my email (
orderarticle@atbarticles.com). I am planning on building a thank you page that it can redirect users to after they click submit, so I also need a place to put that in once I build it.
[PHP]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta content="text/html; charset=unicode" http-equiv="Content-Type"><form method="post" action="
mailto
rderarticle@atbarticles.com" enctype="text/plain" onsubmit=" return formbreeze_sub()" name="form1" >
<meta name="GENERATOR" content="MSHTML 8.00.7600.16535">
<!-- FORMBREEZE-BEGIN - Do not modify these lines directly. -->
<!-- To change your form validation, visit
http://www.formbreeze.com. -->
<script language="JavaScript">
<!--
var b = 0 ;
var i = 0 ;
var errmsg = "" ;
var punct = "" ;
var min = 0 ;
var max = 0 ;
function formbreeze_email(field) {
if (b && (field.value.length == 0)) return true ;
if (! emailCheck(field.value))
{
field.focus();
if (field.type == "text") field.select();
return false ;
}
return true ;
}
function formbreeze_filledin(field) {
if (b && (field.value.length == 0)) return true;
if (field.value.length < min) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false ;
}
if ((max > 0) && (field.value.length > max)) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false ;
}
return true ;
}
function formbreeze_number(field) {
if (b && (field.value.length == 0)) return true ; ;
if (i)
var valid = "0123456789"
else
var valid = ".,0123456789"
var pass = 1;
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") pass = 0;
}
if (!pass) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false;
}
if (field.value < min) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false;
}
if ((max > 0) && (field.value > max)) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false;
}
return true ;
}
function formbreeze_numseq(field) {
if (b && (field.value.length == 0)) return true ;
var valid = punct + "0123456789"
var pass = 1;
var digits = 0
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") pass = 0;
if (valid.indexOf(temp) > (punct.length-1) ) digits++ ;
}
if (!pass) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false ; ;
}
if (digits < min) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false;
}
if ((max > 0) && (digits > max)) {
alert(errmsg);
field.focus();
if (field.type == "text") field.select();
return false;
}
return true ;
}
function emailCheck (emailStr) {
var checkTLD=1;
var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|c oop|info|pro|museum|ws)$/;
var emailPat=/^(.+)@(.+)$/;
var specialChars="