View Full Version : Form Problems


tarq
06-15-2003, 04:21 PM
Hello,

I have added a load of scripts to my form and now its not working can someone help me out. Heres my code. Thank you very much!

<html>
<head>
<title>Mail Me</title>
<script>

/*
Submit Once form validation-
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}

<!-- Begin
function toForm() {
document.form.name.focus();
// Replace field1 in the script with the field name of which you want to place the focus.
}
// End -->
</script>
<STYLE type=text/css>
<!-- BODY, P, TD, DIV
{ line-height: 6pt; text-align: justify; COLOR: #FE0204; FONT-FAMILY:tahoma; FONT-SIZE: 7pt; cursor: none; letter-spacing: 0pt}
A:link {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; CURSOR: none; text-transform: none; letter-spacing: 0pt}
A:visited {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; cursor: none; text-transform: none; letter-spacing: 0pt}
A:active {COLOR: #000000; TEXT-DECORATION: none; font-weight: none; cursor: none; letter-spacing: 0pt}
A:hover {COLOR: #FE0204; text-decoration:none; text-transform:none; cursor: none; letter-spacing:0pt}-->
body {
scrollbar-arrow-color: #000000;
scrollbar-highlight-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-face-color: #ffffff;
scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
scrollbar-shadow-color: #ffffff;
background-image: url(imgs/fundo.jpg);
text-align: justify;
font-weight: normal;
font-size: 8 pt;
font-family: arial;
color: #000000
}
.title {
font-size: 12 pt;
color: #ffffff;
font-weight: bold;
font-family: arial;
filter: shadow(color=#000000, strength=4, direction=115);
height: 1px
}

A:link, A:active {
COLOR: #000000;
text-decoration: underline;
font-weight: bold
}

A:visited {
COLOR: #000000;
text-decoration: line-through;
font-weight: normal
}

A:hover {
color: #000000;
text-decoration: overline;
font-weight: bold;
letter-spacing: 0px;
}

A {
cursor:hand; height:1px; behavior:url(linkhilight.htc);
filter: progid:dximagetransform.microsoft.wheel (spokes=10);
clip: rect( )
}

input, textarea, select {
font-family: arial;
color: #000000;
font-size: 8 pt;
border-bottom: 1px solid #000000;
border-top: 0 px;
border-left: 0 px;
border-right: 0 px
}

table {
font-size: 8pt
}

</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<BODY onLoad="toForm()">
<p align="left">name :
<input type="text" name="name">
<br><br>
e-mail:
<input type="text" name="email">
<br>
<br>
subject:
<input type="text" name="subject">
<br>
<br>
message:
<input type="text area" name="Message">
</font>
<p align="left"> <br>
</font>
<blockquote>
<p align="left">
<input type="submit" value="Mailbox!" ><INPUT TYPE="reset" value="Recycle Bin!">
</font>
<p align="right"><font color="#000000"><br>
</font>
</blockquote>
<p></p>
</form>
<p>&nbsp;</p>
</div>
<br>
</body>
</html>

Have a great day. Tarq