Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prob in email button in dreamweaver

Status
Not open for further replies.

asfiya

IS-IT--Management
Jul 29, 2003
7
0
0
US
Hi, i have been trying to make a form thru dreamweaver 3. I have done whatever is requird,ie i have put all the text fields in my form ie in the red section area.The problem is tht i have put two button ie the submit button and the reset buuton.both of the buttons sem not to be working at all.The submit button is there so tht when a user clicks it,an email is sent to the particular email address.but it is not working.tell me what should i do. i m pasting the coding, pls tell me wht is wrong with the coding and help me out with the solution.thank u.
asfiya

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
<!--

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(&quot;#&quot;)!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf(&quot;?&quot;))>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); 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 bgcolor=&quot;#FFFFFF&quot; text=&quot;#666666&quot; link=&quot;#0000FF&quot; onLoad=&quot;MM_preloadImages('buttons/home2.GIF','buttons/about2.GIF','buttons/products2.GIF','buttons/contact%20us2.GIF','buttons/inquiry2.GIF')&quot;>
<div id=&quot;Layer1&quot; style=&quot;position:absolute; left:151px; top:5px; width:618px; height:72px; z-index:2; background-color: #BCBCBC; layer-background-color: #BCBCBC; border: 1px none #000000&quot;>
<div align=&quot;center&quot;><font face=&quot;Arial, Helvetica, sans-serif&quot;> <font color=&quot;#0000FF&quot;><b><font face=&quot;Arial, Helvetica, sans-serif&quot;><font color=&quot;#0000FF&quot;><object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;500&quot; height=&quot;87&quot;>
<param name=movie value=&quot;../../../../Documents%20and%20Settings/Asfi/Desktop/new/new.swf&quot;>
<param name=quality value=high>
<embed src=&quot;../../../../Documents%20and%20Settings/Asfi/Desktop/new/new.swf&quot; quality=high pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;500&quot; height=&quot;87&quot;>
</embed>
</object></font></font><font size=&quot;+2&quot; color=&quot;#999999&quot;> </font></b></font></font></div>
</div>
<div id=&quot;Layer2&quot; style=&quot;position:absolute; left:160px; top:156px; width:615px; height:612px; z-index:3&quot;>
<h6 align=&quot;center&quot;><font size=&quot;+4&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><font size=&quot;+2&quot; color=&quot;#666666&quot;>INQUIRY
</font></font></h6>
<p align=&quot;center&quot;><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; color=&quot;#999999&quot;><b><font color=&quot;#666666&quot;>Please
fill in the form, so that we can look into your queries </font></b></font></p>
<form method=&quot;post&quot; action=&quot;mailto:asfi_m@hotmail.com&quot; name=&quot;form1&quot; enctype=&quot;text/plain&quot;>
</form><p align=&quot;left&quot;><b><font color=&quot;#666666&quot;> First Name</font><font color=&quot;#999999&quot;>
</font></b>
<input type=&quot;text&quot; name=&quot;First name&quot; size=&quot;15&quot; maxlength=&quot;15&quot;>
<b><font size=&quot;3&quot; color=&quot;#666666&quot;>Middle Name</font></b>
<input type=&quot;text&quot; name=&quot;Middle name&quot; size=&quot;15&quot; maxlength=&quot;15&quot;>
<font size=&quot;3&quot;><b> Last Name</b></font>
<input type=&quot;text&quot; name=&quot;Last name&quot; size=&quot;17&quot; maxlength=&quot;17&quot;>
</p>
<p><font size=&quot;3&quot; color=&quot;#666666&quot;><b>Company
<input type=&quot;text&quot; name=&quot;Company&quot; size=&quot;40&quot; maxlength=&quot;40&quot;>
</b></font></p>
<p><b><font size=&quot;3&quot; color=&quot;#666666&quot;> Address
<textarea name=&quot;Address&quot; cols=&quot;50&quot; rows=&quot;5&quot;></textarea>
</font></b></p>
<p><b><font size=&quot;3&quot; color=&quot;#666666&quot;>Email
<input type=&quot;text&quot; name=&quot;Email&quot; size=&quot;35&quot; maxlength=&quot;33&quot;>
</font></b><font size=&quot;3&quot; color=&quot;#666666&quot;>(eg: yourname@hotmail.com)</font></p>
<p><b><font size=&quot;3&quot; color=&quot;#666666&quot;>Telephone
<input type=&quot;text&quot; name=&quot;Telephone&quot; size=&quot;20&quot; maxlength=&quot;20&quot;>
Fax
<input type=&quot;text&quot; name=&quot;Fax&quot;>
</font></b></p>
<p><b><font size=&quot;3&quot; color=&quot;#666666&quot;>Inquiry
<textarea name=&quot;Inquiry&quot; cols=&quot;73&quot; rows=&quot;6&quot;></textarea>
</font></b></p>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit&quot;>
<input type=&quot;reset&quot; name=&quot;Submit2&quot; value=&quot;Reset&quot;>
<form name=&quot;form2&quot; >
</form>
<form name=&quot;form1&quot; method=&quot;post&quot; action=&quot;mailto:asfi_@hotmail.com&quot;>
</form>
<form name=&quot;form1&quot; action=&quot;mailto:asfi_m@hotmail.com&quot; method=&quot;post&quot; enctype=&quot;text/plain&quot;>
</form></div>
<div id=&quot;Layer3&quot; style=&quot;position:absolute; left:160px; top:140px; width:603px; height:22px; z-index:4&quot;>
<img src=&quot;buttons/bar3.gif&quot; width=&quot;600&quot; height=&quot;10&quot;> </div>
<div id=&quot;Layer5&quot; style=&quot;position:absolute; left:0px; top:2px; width:150px; height:1046px; z-index:1; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000&quot;></div>
<div id=&quot;Layer6&quot; style=&quot;position:absolute; left:4px; top:160px; width:137px; height:37px; z-index:6&quot;><a href=&quot;homepage.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('home','','buttons/home2.GIF',1)&quot;><img name=&quot;home&quot; border=&quot;0&quot; src=&quot;buttons/home.GIF&quot; width=&quot;128&quot; height=&quot;25&quot;></a></div>
<div id=&quot;Layer7&quot; style=&quot;position:absolute; left:4px; top:189px; width:137px; height:28px; z-index:7&quot;><a href=&quot;profile.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('about','','buttons/about2.GIF',1)&quot;><img name=&quot;about&quot; border=&quot;0&quot; src=&quot;buttons/about.GIF&quot; width=&quot;128&quot; height=&quot;25&quot;></a></div>
<div id=&quot;Layer8&quot; style=&quot;position:absolute; left:6px; top:216px; width:137px; height:28px; z-index:8&quot;><a href=&quot;products.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('product','','buttons/products2.GIF',1)&quot;><img name=&quot;product&quot; border=&quot;0&quot; src=&quot;buttons/products.GIF&quot; width=&quot;128&quot; height=&quot;25&quot;></a></div>
<div id=&quot;Layer9&quot; style=&quot;position:absolute; left:7px; top:246px; width:137px; height:28px; z-index:9&quot;><a href=&quot;contact%20us.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('contact','','buttons/contact%20us2.GIF',1)&quot;><img name=&quot;contact&quot; border=&quot;0&quot; src=&quot;buttons/contact%20us.gif&quot; width=&quot;128&quot; height=&quot;25&quot;></a></div>
<div id=&quot;Layer10&quot; style=&quot;position:absolute; left:7px; top:277px; width:137px; height:33px; z-index:10&quot;><a href=&quot;inquiry.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('inquiry','','buttons/inquiry2.GIF',1)&quot;><img name=&quot;inquiry&quot; border=&quot;0&quot; src=&quot;buttons/inquiry.GIF&quot; width=&quot;128&quot; height=&quot;25&quot;></a></div>
<p>&nbsp;</p><p><br>
</p>
<p>&nbsp;</p>
<span id=&quot;Layer4&quot; style=&quot;position:absolute; left:4px; top:10px; width:97px; height:87px; z-index:5&quot;><img src=&quot;SF%20LOGO.jpg&quot; width=&quot;97&quot; height=&quot;87&quot;></span>
<p>&nbsp;</p>
<p align=&quot;left&quot;>&nbsp;</p>
</body>
</html>
 
nothing is IN your form
:-----------------------------------
<form method=&quot;post&quot; action=&quot;mailto:asfi_m@hotmail.com&quot; name=&quot;form1&quot; enctype=&quot;text/plain&quot;>
[/b]</form>[/b]<p align=&quot;left&quot;><b><font color=&quot;#666666&quot;> First Name</font><font color=&quot;#999999&quot;>
</font></b>
<input type=&quot;text&quot; name=&quot;First name&quot; size=&quot;15&quot; maxlength=&quot;15&quot;>
......
----------------------------------------
without me posting blobs just make sure the all the fileds are in side the from tags
<form>
input
input
input....
</form>

all the best!

> need more info?
:: don't click HERE ::
 
...and ONLY one form will do :)


> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top