Contact form

Permabanned
Joined
10 Mar 2005
Posts
453
I have a web template with a contact form already on it! I wish to use it however i dont know where to put the email tag? Help please!

page code is below.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled</title>
<link href="style.css" type="text/css" rel="stylesheet">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //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
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
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
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];}
}
//-->
</script>
</head>
<body>
<TABLE style="HEIGHT: 100%; BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>&nbsp;</TD>
<TD width=766 height=770>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-POSITION: right top; BACKGROUND-IMAGE: url(images/bg_1_1.gif); BACKGROUND-REPEAT: repeat-y" width=32><img alt="#" height=1 src="images/spacer.gif" width=1></TD>
<TD width=695>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=695 border=0>
<TBODY>
<TR>
<TD height=70>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=695 border=0>
<TBODY>
<TR>
<TD width=246>
<DIV style="PADDING-LEFT: 30px; PADDING-TOP: 19px"><A href="index.html"><img src="images/logo_1.jpg" alt="#" width=193 height=38 border="0"></A></DIV></TD>
<TD style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(images/line_1_1.gif); BACKGROUND-REPEAT: no-repeat" width=361>
<DIV style="PADDING-LEFT: 8px; PADDING-TOP: 42px"><A href="#"><img alt="#" height=15 src="images/h_1_1.gif" width=202></A></DIV></TD>
<TD>
<DIV style="PADDING-RIGHT: 16px; PADDING-LEFT: 0px; PADDING-TOP: 38px" align=right><A href="#"><img alt="#" height=13 src="images/p_01.gif" width=27></A><A href="#"><img alt="#" height=13 src="images/p_02.gif" width=27></A></DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD height=656>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=695 border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-POSITION: right top; BACKGROUND-IMAGE: url(images/a_1.gif); BACKGROUND-REPEAT: repeat-y" width=247>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=247 border=0>
<TBODY>
<TR>
<TD height=329><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="247" height="329">
<param name="movie" value="flash/sl_show.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash/sl_show.swf"
width="247" height="329" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></TD></TR>
<TR>
<TD class=grey_1>
<DIV class=blue_big style="PADDING-LEFT: 15px; PADDING-TOP: 18px"><img alt="#" style="MARGIN-RIGHT: 5px" height=13 src="images/h_1_2.gif" width=15>Locations</DIV>
<DIV style="PADDING-RIGHT: 17px; PADDING-LEFT: 20px; PADDING-TOP: 10px">
<DIV style="PADDING-LEFT: 0px; FONT-WEIGHT: bold; PADDING-TOP: 0px">UK</DIV>
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 0px">Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibu lum moles tie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi. Cum sociis natoque penatibus. </DIV>
<DIV style="PADDING-LEFT: 0px; FONT-WEIGHT: bold; PADDING-TOP: 13px">France</DIV>
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 0px">Magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus nec, luctus a, lorem. Maecenas tristique orci ac sem. Duis ultricies.</DIV>
<DIV style="PADDING-LEFT: 0px; FONT-WEIGHT: bold; PADDING-TOP: 13px">Germany</DIV>
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 0px">Donec accumsan malesuada orci. Donec sit amet eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris fermen- tum dictum magna. Sed laoreet aliquam leo. Ut tellus dolor, dapibus eget elementum.</DIV></DIV></TD></TR></TBODY></TABLE></TD>
<TD>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=448 border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(images/a_1.gif); BACKGROUND-REPEAT: repeat-x" height=116>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="448" height="116">
<param name="movie" value="flash/menu.swf?button=5">
<param name="quality" value="high">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="flash/menu.swf?button=5"
width="448" height="116" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></TD></TR>
<TR>
<TD>
<TABLE id=cont_2 style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=448 border=0>
<TBODY>
<TR>
<TD class=grey_2 style="BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(images/bg_3_1.gif); BACKGROUND-REPEAT: repeat-x; BACKGROUND-COLOR: #fafaf8" height=172>
<DIV style="PADDING-LEFT: 25px; PADDING-TOP: 33px"><img alt="#" height=21 src="images/h_5_1.gif" width=211></DIV>
<DIV style="PADDING-RIGHT: 10px; PADDING-LEFT: 23px; PADDING-BOTTOM: 0px; PADDING-TOP: 19px">
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 0px"><img alt="#" style="MARGIN-TOP: 0px; MARGIN-RIGHT: 14px" height=77 hspace=0 src="images/pic_5_1.jpg" width=99 align=left></DIV>
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 2px">Lorem ipsum dolor sit amet, consec tetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus porta. Fusce suscipit varius mi cum sociis natoque <A href="#">learn more</A> </DIV></DIV></TD></TR>
<TR>
<TD class=grey_1 style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images/a_1.gif); BACKGROUND-REPEAT: repeat-x">
<DIV class=blue_big style="PADDING-LEFT: 16px; PADDING-TOP: 19px"><img alt="#" style="MARGIN-RIGHT: 7px" height=13 src="images/h_1_4.gif" width=13>Contact form</DIV>
<FORM id=form_1 style="BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; WIDTH: auto; PADDING-TOP: 0px; BORDER-BOTTOM: 0px; HEIGHT: auto" action="">
<TABLE class=grey_1 cellSpacing=0 cellPadding=0 width=447 border=0>
<TBODY>
<TR>
<TD width=227>
<TABLE class=grey_1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD height=41>
<DIV style="PADDING-LEFT: 22px; PADDING-TOP: 16px">Your first name:</DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR>
<TR>
<TD height=41>
<DIV style="PADDING-LEFT: 22px; PADDING-TOP: 6px">Your last name:</DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR>
<TR>
<TD height=41>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 6px">E-mail address:</DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR>
<TR>
<TD height=41>
<DIV style="PADDING-LEFT: 22px; PADDING-TOP: 6px">Your telephone: </DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR>
<TR>
<TD height=41>
<DIV style="PADDING-LEFT: 22px; PADDING-TOP: 6px">Your fax: </DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR>
<TR>
<TD>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 6px">Company name: </DIV>
<DIV style="PADDING-LEFT: 23px; PADDING-TOP: 0px"><INPUT style="WIDTH: 197px; HEIGHT: 20px"></DIV></TD></TR></TBODY></TABLE></TD>
<TD>
<DIV style="PADDING-LEFT: 1px; PADDING-TOP: 16px">Your message:</DIV>
<DIV style="PADDING-LEFT: 2px; PADDING-TOP: 0px"><TEXTAREA style="OVERFLOW: auto; WIDTH: 197px; HEIGHT: 225px" rows=30 cols="20"></TEXTAREA> </DIV>
<DIV style="PADDING-RIGHT: 32px; PADDING-LEFT: 0px; PADDING-TOP: 2px" align=right><A class=blue_2 onClick="document.getElementById('form_1').reset()" href="#">reset</A><img alt="#" style="MARGIN-LEFT: 15px" height=8 src="images/spacer.gif" width=8><A class=blue_2 onClick="document.getElementById('form_1').reset()" href="#">submit</A></DIV></TD></TR></TBODY></TABLE></FORM>
<DIV style="PADDING-LEFT: 0px; PADDING-TOP: 0px"></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images/a_1.gif); BACKGROUND-REPEAT: repeat-x">
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width=695 border=0>
<TBODY>
<TR>
<TD>
<DIV style="PADDING-LEFT: 30px; PADDING-TOP: 22px"><img alt="#" height=11 src="images/bottom_01.gif" width=128><img alt="#" height=11 src="images/bottom_02.gif" width=7><A href="index-5.html"><img alt="#" src="images/bottom_03.gif" width=75 height=11 border="0"></A><img alt="#" height=11 src="images/bottom_04.gif" width=7><A href="#"><img alt="#" height=11 src="images/bottom_05.gif" width=75></A></DIV></TD>
<TD align=right>
<DIV style="PADDING-RIGHT: 16px; PADDING-LEFT: 0px; PADDING-TOP: 22px" align=right><A href="#"><img alt="#" height=15 src="images/bottom_8.gif" width=63></A></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images/bg_1_2.gif); BACKGROUND-REPEAT: repeat-y"><img alt="#" height=1 src="images/spacer.gif" width=1></TD></TR></TBODY></TABLE></TD>
<TD>&nbsp;</TD></TR>
<TR>
<TD>&nbsp;</TD>
<TD>
<TABLE style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images/bg_1_5.gif); BACKGROUND-REPEAT: repeat-x; HEIGHT: 100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-POSITION: left top; BACKGROUND-IMAGE: url(images/bg_1_4.gif); BACKGROUND-REPEAT: no-repeat" width=44>&nbsp;</TD>
<TD>&nbsp;</TD>
<TD style="BACKGROUND-POSITION: right top; BACKGROUND-IMAGE: url(images/bg_1_6.gif); BACKGROUND-REPEAT: no-repeat" width=47>&nbsp;</TD></TR></TBODY></TABLE></TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></body></html>
 
looks like a Dreamweaver build ... if it was coded with CSS it wouldn't be half so much time to find out the correct parts.

(if i don't say it someone else will)
 
the reason you probably can't find it is because that they code is so damn ugly. I have searched through the code to find the form but its so messy my ears are hurting and im having to rest them every few seconds.

looks like it uses javascript for the senind though thats just a quick guess so i am no help whatso ever.

you got a link to this template?
 
Both the links reset and submit are clearing the form, there's no sending going on. Looks like you'll have to modify the script.

Also it helpful to use the CODE tags to keep all formating, makes thing easier... ;)
 
please anyone just need it to be highlighted in red if anyone could put the code in here so that i may know where to change it in dreamweaver!

Please
 
the_box said:
please anyone just need it to be highlighted in red if anyone could put the code in here so that i may know where to change it in dreamweaver!

Please

That's a very badly coded template and i'm no html expert either. You need link the form to a file that will process the form content, somelike submit.php. I have a very very very basic php file that will send the submitted info to a specified email if you like.
 
Back
Top Bottom