# Form submit help! Urgent!

**URL:** https://forum.kirupa.com/t/form-submit-help-urgent/148748
**Category:** Uncategorized
**Created:** [May 23, 2005, 10:00am UTC](https://forum.kirupa.com/t/form-submit-help-urgent/148748 "2005-05-23T10:00:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shush1](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@shush1](https://forum.kirupa.com/u/shush1)
#### Post date: [May 23, 2005, 10:00am UTC](https://forum.kirupa.com/t/form-submit-help-urgent/148748/1 "2005-05-23T10:00:34Z")

</div>

Hi i have created a a form that subits results to my email address, when submited the form just stays in view so u dnt now if it was successfully sent or not, how can on submit can i i bring up a thank you successfull page? Hope someone can help, thank you here is the form script

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” xml:lang=“en” lang=“en”\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>  
\<title\>form\</title\>  
\<script language=“JavaScript” type=“text/JavaScript”\>  
\<!–  
function MM\_swapImgRestore() { [//v3.0](https://v3.0)  
var i,x,a=document.MM\_sr; for(i=0;a&&i\<a.length&&(x=a\*)&&x.oSrc;i++) x.src=x.oSrc;  
}

function MM\_preloadImages() { [//v3.0](https://v3.0)  
var d=document; if(d.images){ if(!d.MM\_p) d.MM\_p=new Array();  
var i,j=d.MM\_p.length,a=MM\_preloadImages.arguments; for(i=0; i\<a.length; i++)  
if (a\*.indexOf("#")!=0){ d.MM\_p[j]=new Image; d.MM\_p[j++].src=a\*;}}  
}

function MM\_findObj(n, d) { [//v4.01](https://v4.01)  
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))\>0&&parent.frames.length) {  
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i\<d.forms.length;i++) x=d.forms\*[n];  
for(i=0;!x&&d.layers&&i\<d.layers.length;i++) x=MM\_findObj(n,d.layers\*.document);  
if(!x && d.getElementById) x=d.getElementById(n); return x;  
}

function MM\_swapImage() { [//v3.0](https://v3.0)  
var i,j=0,x,a=MM\_swapImage.arguments; document.MM\_sr=new Array; for(i=0;i\<(a.length-2);i+=3)  
if ((x=MM\_findObj(a\*))!=null){document.MM\_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}  
}  
function MM\_validateForm() { [//v4.0](https://v4.0)  
var i,p,q,nm,test,num,min,max,errors=’’,args=MM\_validateForm.arguments;  
for (i=0; i\<(args.length-2); i+=3) { test=args[i+2]; val=MM\_findObj(args\*);  
if (val) { nm=val.name; if ((val=val.value)!="") {  
if (test.indexOf(‘isEmail’)!=-1) { p=val.indexOf(’@’);  
if (p\<1 || p==(val.length-1)) errors+=’- ‘+nm+’ must contain an e-mail address.  
‘;  
} else if (test!=‘R’) { num = parseFloat(val);  
if (isNaN(val)) errors+=’- ‘+nm+’ must contain a number.  
‘;  
if (test.indexOf(‘inRange’) != -1) { p=test.indexOf(’:’);  
min=test.substring(8,p); max=test.substring(p+1);  
if (num\<min || max\<num) errors+=’- ‘+nm+’ must contain a number between ‘+min+’ and ‘+max+’.  
';  
} } } else if (test.charAt(0) == ‘R’) errors += '- ‘+nm+’ is required.  
'; }  
} if (errors) alert('The following error(s) occurred:  
'+errors);  
document.MM\_returnValue = (errors == ‘’);  
}  
//–\>  
\</script\>  
\<style type=“text/css”\>  
\<!–  
body {  
background-image: url();  
background-color: #f3ecd5;  
margin-left: 3px;  
margin-top: 0px;  
margin-right: 0px;  
margin-bottom: 0px;  
}  
body,td,th {  
font-family: R Frutiger Roman;  
color: #333333;  
}  
.style10 {  
font-size: 11px;  
line-height: 12pt;  
font-weight: normal;  
font-variant: normal;  
}  
.style12 {font-family: “B Frutiger Bold”}  
a {  
font-family: B Frutiger Bold;  
font-size: 11px;  
}  
a:link {  
text-decoration: none;  
color: #333333;  
}  
a:visited {  
text-decoration: none;  
}  
a:hover {  
text-decoration: none;  
color: #999999;  
}  
a:active {  
text-decoration: none;  
}  
.style13 {font-family: “R Frutiger Roman”}  
–\>  
\</style\>  
\<script language=“JavaScript” type=“text/JavaScript”\>  
\<!–  
function MM\_reloadPage(init) { //reloads the window if Nav4 resized  
if (init==true) with (navigator) {if ((appName==“Netscape”)&&(parseInt(appVersion)==4)) {  
document.MM\_pgW=innerWidth; document.MM\_pgH=innerHeight; onresize=MM\_reloadPage; }}  
else if (innerWidth!=document.MM\_pgW || innerHeight!=document.MM\_pgH) location.reload();  
}  
MM\_reloadPage(true);  
//–\>  
\</script\>  
\</head\>  
\<body onload=“MM\_preloadImages(‘submitover.jpg’)”\>  
\<!–url’s used in the movie–\>  
\<!–text used in the movie–\>  
\<p class=“unnamed1”\>&nbsp;\</p\>\<table width=“100” border=“0”\>  
\<tr\>  
\<td\>&nbsp;\</td\>  
\<td\>\<div align=“left”\>\<img src=“logo1.png” /\>\</td\>  
\</tr\>  
\</table\>

\<p align=“left” class=“style10”\>\<table width=“504” border=“0”\>  
\<table width=“412” border=“0”\>  
\<tr\>  
\<td width=“137”\>\<span class=“style10”\>\</span\>\</span\>\</td\>  
\<td width=“265” class=“style10”\>\<div align=“right”\>These properties will be available later this year.\<br\>  
Please register your interest and we will be in\<br\>  
contact with you when the site is to be released\</div\>\</td\>  
\</tr\>  
\</table\>  
\</p\>  
\<form NAME=“addform” METHOD=“POST” enctype=“text/plain”  
ACTION=‘[mailto:ian@topacre.net](mailto:ian@topacre.net)?subject=Contact Form’ onSubmit=“return submitForms()”\>

```
		  &lt;input type="hidden" name="FORM" value="Submit Link"&gt;

            &lt;div align="left"&gt; 
			&lt;table width="658" border="0" align="left" cellpadding="8" cellspacing="2"&gt;

              &lt;tr&gt;
                &lt;td width="117" class="style10"&gt;&lt;/td&gt;
                &lt;td width="31" class="style10"&gt;&lt;div align="right"&gt;Name&lt;/div&gt;&lt;/td&gt;
                &lt;td colspan="4" class="unnamed1"&gt;&lt;input name="Name" type="text" class="entryform " id="Name" size="32"&gt;&lt;/td&gt;
				

                

              &lt;/tr&gt;

              &lt;tr&gt;
                &lt;td colspan="2" class="unnamed1 style9"&gt;&lt;div align="right" class="style10"&gt;Address&lt;/div&gt;&lt;/td&gt;

                &lt;td colspan="4" rowspan="2" class="unnamed1"&gt;&lt;span class="unnamed1"&gt;
                  &lt;textarea name="Address" cols="24" rows="5" wrap="VIRTUAL" id="city"&gt;&lt;/textarea&gt;
                &lt;/span&gt;&lt;/td&gt;

              

              &lt;/tr&gt;
              &lt;tr&gt;
                &lt;td colspan="2" class="unnamed1"&gt;&nbsp;&lt;/td&gt;
              &lt;/tr&gt;

              &lt;tr&gt;
                &lt;td colspan="2" class="style9"&gt;&lt;div align="right" class="style10"&gt;Telephone number:&lt;/div&gt;&lt;/td&gt;

                &lt;td colspan="4" class="unnamed1"&gt;&lt;input name="tel" type="text" class="entryform " id="tel" value="" size="32"&gt;&lt;/td&gt;

               

              &lt;/tr&gt;

              &lt;tr&gt;
                &lt;td colspan="2" class="unnamed1 style9"&gt;&lt;div align="right" class="style10"&gt;Email&lt;/div&gt;&lt;/td&gt;

                &lt;td colspan="4" class="unnamed1"&gt;&lt;input name="email" type="text" class="entryform " id="email" value="" size="32"&gt;&lt;/td&gt;

      

              &lt;/tr&gt;
			  &lt;tr&gt;
			    &lt;td colspan="2" class="unnamed1 style9"&gt;&lt;div align="right" class="style10"&gt;where did you hear about us? 

                  &lt;/div&gt;&lt;/td&gt;

                &lt;td colspan="4" class="unnamed1"&gt;&lt;input name="where" type="text" class="entryform " id="where" value="" size="32"&gt;&lt;/td&gt;
				&lt;tr&gt;
                &lt;td colspan="2" class="unnamed1 style9"&gt;&lt;div align="right" class="style10"&gt;Comments&lt;/div&gt;&lt;/td&gt;

                &lt;td colspan="4" rowspan="2" class="unnamed1"&gt;&lt;span class="unnamed1"&gt;
                  &lt;textarea name="Address" cols="24" rows="5" wrap="VIRTUAL" id="city"&gt;&lt;/textarea&gt;
                &lt;/span&gt;&lt;/td&gt;

              

              &lt;/tr&gt;

		      &lt;/tr&gt;
			  &lt;tr&gt;
			    &lt;td colspan="2" class="unnamed1 style9"&gt;

                &lt;/td&gt;

                &lt;td width="119" class="unnamed1"&gt;&lt;/td&gt;

                &lt;td width="76" class="unnamed1"&gt;&lt;input type="submit" class="Arial11px" style="width:120" value="SUBMIT"&gt;&lt;/td&gt;
                &lt;td width="21" class="unnamed1"&gt;&nbsp;&lt;/td&gt;
                &lt;td width="184" class="unnamed1"&gt;&nbsp;&lt;/td&gt;
			  &lt;/tr&gt;
			  &lt;tr&gt;
			    &lt;td height="63" colspan="2" class="unnamed1 style9"&gt;

                &lt;/td&gt;

                &lt;td colspan="2" class="style10 style13"&gt;&lt;div align="right" class="style10"&gt;Or contact:&lt;br&gt;

```

Ian Whittle on Telephone 01908 282757 \<br\>  
\</div\>\</td\>  
\<td class=“style10 style13”\>&nbsp;\</td\>  
\<td class=“style10 style13”\>&nbsp;\</td\>  
\</tr\>  
\</table\>

\</form\>

\</body\>  
\</html\>
