DW Mx2004 Form Problem!!!

0 views
Skip to first unread message

blacksmith77

unread,
Oct 3, 2006, 8:23:21 AM10/3/06
to Dreamweaver
I have a catalog request form that a requires information that must be
filled in in order to submit it to an email address . Now every month
this email address recievces blank request . How does this occur if
form can not be submitted without required information. Help!!! Thanks
:>
Here's the code :

<%= Request("Request") %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================


// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!


theImages[0] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p55­064_99686_99688.jpg'

theImages[1] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p90­151_k95079_97077.jpg'

theImages[2] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p90­158_97006_52024.jpg'

theImages[3] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p97­060_52045_97077.jpg'

theImages[4] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p97­060_52045_99491.jpg'

theImages[4] =
'/Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/rotate_navJpegs/p99­033a_90161_95010.jpg'

// ======================================
// do not change anything below this line
// ======================================


var j = 0
var p = theImages.length;


var preBuffer = new Array()
for (i = 0; i < p; i++){
preBuffer[i] = new Image()
preBuffer[i].src = theImages[i]

}


var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');


}


//-->
</script>

<title>A Semiconductor Resource, Glemco Inc.</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<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);

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

}


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;


}


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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;


}


function MM_validateForm() { //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[i]);
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.\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
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+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is
required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');


}


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[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}

}


//-->
</script>
<link href="CSS%20Stlye%20NHP/Arial%20Text%20Basic.css"
rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #425972;

}


-->
</style>
<link href="CSS%20Stlye%20NHP/Arial%20Italic%2024pt." rel="stylesheet"
type="text/css">
<style type="text/css">
<!--
.style19 {
font-family: "Trebuchet MS";
font-size: 13pt;
color: #0D192F;

}


.style21 {
font-family: Arial;
font-size: 9pt;
color: #000000;
font-weight: bold;

}


.style22 {
font-size: 22pt;
color: #382664;
font-family: Arial;
position: absolute;
left: 2px;
top: 20px;
width: 289px;
height: 50px;
z-index: 25;
font-style: italic;

}


.style23 {
font-family: Arial;
font-size: 12pt;

}


.style43 {font-size: 14pt}
-->
</style>

</head>


<body
onLoad="MM_preloadImages('Main%20Images%20-%20Photoshop%20files%20New%20WEB­Site/Jpegs%20SM%20size/FEAT_99477H_MOUSEover.jpg','Main%20Images%20-%20Phot­oshop%20files%20New%20WEBSite/Jpegs%20SM%20size/FEAT_99438_MOUSEover.jpg','­Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20size/FEA­T_99432_MOUSEover.jpg','Main%20Images%20-%20Photoshop%20files%20New%20WEBSi­te/Jpegs%20SM%20size/FEAT99681_MOUSE%20over.jpg','Main%20Images%20-%20Photo­shop%20files%20New%20WEBSite/Jpegs%20SM%20size/Part%20search%20MOUSEON_NAV.­jpg','Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20si­ze/REQcataMOUSE.jpg','Main%20Images%20-%20Photoshop%20files%20New%20WEBSite­/Jpegs%20SM%20size/PDFcat__MOUSE.jpg','Main%20Images%20-%20Photoshop%20file­s%20New%20WEBSite/Jpegs%20SM%20size/Order%20INFO_MOUSE.jpg','Main%20Images%­20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20size/ProductCHG_MOUSE.­jpg','Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20si­ze/About%20us%20_MOUSE.jpg','Main%20Images%20-%20Photoshop%20files%20New%20­WEBSite/Jpegs%20SM%20size/Sumbit%20RMA_Mouse.jpg','Main%20Images%20-%20Phot­oshop%20files%20New%20WEBSite/Jpegs%20SM%20size/HOME_MOUSE.jpg')">

<table width="760" height="1020" align="center" bgcolor="#FFFFFF">
<tr>
<td valign="top" bgcolor="#FFFFFF"> <div
style="position:relative;
width:760; height:1020px; z-index:1; top: 0px; left: 0px;
background-color: FFFFFF; layer-background-color: FFFFFF; border: 1px
none #000000; visibility: visible;">
<div id="navBar" style="position:absolute; left:21px;
top:181px; width:712px; height:40px; z-index:24; visibility: visible;">

<table width="701" height="39" border="0"
cellpadding="1" cellspacing="0">
<tr>
<th width="83" scope="col"><a
href="PartSearch_PG_NEW.asp" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image26','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/Part%20search%20MOUSEON_NAV.jpg',1)"><­img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Part%20search.jpg"

name="Image26" width="81" height="35" border="0"></a></th>
<th width="117" scope="col"><a
href="ReqA_Catalog.asp" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image27','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/REQcataMOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/REQ.catalog%201_NAV.jpg"

name="Image27" width="112" height="35" border="0"></a></th>
<th width="94" scope="col"><a
href="PDFCatalogNEW.htm" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image28','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/PDFcat__MOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/PDFcat_1.jpg"

name="Image28" width="90" height="35" border="0"></a></th>
<th width="73" scope="col"><a
href="ORDERINFO_NEWSITE.htm" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image29','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/Order%20INFO_MOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Order%20INFO_1.jpg"

name="Image29" width="70" height="35" border="0"></a></th>
<th width="115" scope="col"><a
href="Product%20Changes_NEW.htm" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image30','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/ProductCHG_MOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/ProductCHG_1.jpg"

name="Image30" width="112" height="36" border="0"></a></th>
<th width="70" scope="col"><a
href="About%20Us_NEW.htm" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image31','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/About%20us%20_MOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/About%20us_1.jpg"

name="Image31" width="64" height="36" border="0"></a></th>
<th width="85" scope="col"><a
href="RMA_form_NEW.asp" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image32','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/Sumbit%20RMA_Mouse.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Sumbit%20RMA_1.jpg"

name="Image32" width="81" height="36" border="0"></a></th>
<th width="57" scope="col"><a
href="Default.asp" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image33','','Main%20Images%20-%20Photoshop%20fil­es%20New%20WEBSite/Jpegs%20SM%20size/HOME_MOUSE.jpg',1)"><img

src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/HOME_1.jpg"

name="Image33" width="53" height="36" border="0"></a></th>
</tr>
</table>
</div>
<div id="TOPheader" style="position:absolute; left:20px;
top:20px; width:700px; height:163px; z-index:21; visibility: visible;">

<div id="FLASHPRTS" style="position:absolute; left:354px; top:40px;
width:345px; height:80; z-index:1; background-color: #7EA1BF;
layer-background-color: #7EA1BF; border: 1px none #000000; visibility:
hidden;">
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v..."

width="345" height="80">
<param name="movie"
value="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/flash%20object­s/Top%20Header%20700X99_5-16-06.swf">

<param name="quality" value="high">
<param name="BGCOLOR" value="#7EA1BF">
<embed
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/flash%20objects/­Top%20Header%20700X99_5-16-06.swf"

width="345" height="80" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" bgcolor="#7EA1BF"></embed>
</object>
</div>
<div id="ensolufyoe"
style="position:absolute; left:228px; top:5px; width:508px;
height:22px; z-index:4; visibility: hidden;"> <span
class="style19">Engineering Solutions For Your Existing OEM Equipment
</span></div>
<div id="proBrand"
style="position:absolute; left:12px; top:128px; width:705px;
height:22px; z-index:5; visibility: hidden;"><span
class="style19">Products for <span class="style43">Applied Materials,
Axcelis,Varian/Genus, LAM, Novellus, Aviza/WJ </span></span></div>
<div id="Layer5" style="position:absolute;
left:354px; top:40px; width:345px; height:82px; z-index:6"><script
language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================
showImage();
//-->
</script></div>
<img
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Top%20Header%20700X99_noLOGOMorBlueRT.jpg"

width="700" height="158" border="0" usemap="#Map"></div>
<map name="Map">
<area shape="rect" coords="4,4,220,113"
href="Default.asp">
<area shape="poly" coords="6,8" href="#">
</map>
<div id="Layer3" style="position:absolute;
left:30px; top:283px; width:295px; height:11px; z-index:24;"><img
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Temp_UNDERLINE.jpg"

width="478" height="5"></div>
<div id="Layer2" style="position:absolute;
left:7px; top:980px; width:747px; height:46px; z-index:22; font-family:

Arial; font-size: 8px;">&copy;2001 Glemco, Inc. All Rights Reserved.
<br>
Names of companies other than Glemco, Inc. are used only in identifying

products and may be trademarks of those companies. All trademarks are
the property of the companies referenced. Torlon&reg; is a registered
trademark of Amoco Chemicals Corp. Dicronite&reg; is a registered
trademark of Dicronite Dry Lube. Delrin&reg;, Teflon&reg;, and
Vespel&reg; are registered trademarks of DuPont; Kalrez&reg; and
Viton&reg; of DuPont Dow Elastomers. Belleville Spring&reg; is a
registered trademark of Fan Disc Corporation. Rulon&reg; is a
registeredA trademark of Furon.</div>
<div id="SIDEbar" style="position:absolute; left:20px;
top:228px; width:65px; height:722px; z-index:23"><img
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/blue%20and%20light%20white%20bar.jpg"

width="61" height="721"></div>
<div id="BottomBAR"
style="position:absolute;
left:20px; top:955px; width:729px; height:25px; z-index:24"><img
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/blue%20bage%20bottombar.jpg"

width="725" height="9"></div>
<div id="Title" style="position:absolute;

left:30px; top:249px; width:337px; height:55px; z-index:25; visibility:

inherit;" class="style22">Request a Catalog </div>
<div id="Layer1"
style="position:absolute;
left:90px; top:309px; width:628px; height:580px; z-index:26">
<form
name="catalogrequestform" method="post"
action="REQcatalogTHANKU_NEW.asp">
<table
width="623" height="608" border="0" cellpadding="0"
cellspacing="0">
<tr align="center" valign="top">
<th height="37" colspan="2"
scope="col"><div align="left"><span class="style23">Please send</span>


<select name="cdquantity">

<option selected>0</option>

<option>1</option>

<option>2</option>

<option>3</option>

<option>4</option>

<option>5</option>
</select>
<span class="style23">catalog CD(s)
and</span>
<select name="catalogquantity">

<option selected>0</option>

<option>1</option>

<option>2</option>

<option>3</option>

<option>4</option>

<option>5</option>
</select>
<span class="style23">printed
catalogs</span></div></th>
</tr>
<tr>
<th width="122" height="38"
align="center" valign="top" scope="row"><div align="left"
class="style23">Name:</div></th>
<td width="501" align="center"
valign="top"><div align="left">
<input name="nametext" type="text"
size="25" maxlength="35">
</div></td>
</tr>
<tr>
<th height="36" align="center"
valign="top" scope="row"><div align="left"
class="style23">Title:</div></th>
<td align="center" valign="top"><div
align="left">
<input name="titletext" type="text"
size="25" maxlength="35">
</div></td>
</tr>
<tr align="center" valign="top">
<th height="34" scope="row"><div
align="left" class="style23">Email:</div></th>
<td><div align="left">
<input name="emailtext" type="text"
size="25" maxlength="35">
</div></td>
</tr>
<tr align="center" valign="top">
<th height="40" scope="row"><div
align="left" class="style23">Telephone:</div></th>
<td><div align="left">
<input name="phonetext" type="text"
size="25" maxlength="35">
</div></td>
</tr>
<tr align="center" valign="top">
<th height="57" scope="row"><div
align="left" class="style23">Company:</div></th>
<td><div align="left">
<input name="companytext" type="text"

size="25" maxlength="35">
</div></td>
</tr>
<tr align="center" valign="top">
<th height="114" scope="row"><div
align="left" class="style23">Mailing Adress: </div></th>
<td><div align="left">
<textarea name="addresstext"
cols="30" rows="4"></textarea>
</div></td>
</tr>
<tr align="center" valign="top">
<th scope="row"><div align="left"
class="style23">Comments:</div></th>
<td><div align="left">
<textarea name="commentstext"
cols="30" rows="2"></textarea>
</div></td>
</tr>
<tr align="center" valign="top">
<th height="44" align="center"
scope="row"><div align="left"></div></th>
<td align="left" valign="middle"><div
align="left">
<input name="Submit" type="submit"
onClick="MM_validateForm('nametext','','R','emailtext','','R','usernametext­','','R','passwordtext','','R','RisEmail','','R','phonetext','','R','compan­ytext','','R','addresstext','','R');return

document.MM_returnValue" value="Submit Request">
</div></td>
</tr>
<tr align="center" valign="top">
<th height="90" scope="row"><div
align="left"></div></th>
<td><div align="left"></div></td>
</tr>
</table>


</form>
</div>
<div id="Layer4"
style="position:absolute;
left:667px; top:916px; width:80px; height:36px; z-index:27; visibility:

visible;"><a href="Contact_us_NEW.htm"><img
src="Main%20Images%20-%20Photoshop%20files%20New%20WEBSite/Jpegs%20SM%20siz­e/Contact%20us%20sep..jpg"

width="79" height="36" border="0"></a></div>
</div> </td>
</tr>
</table>
</body>
</html>

Jason Turnbull

unread,
Oct 3, 2006, 6:53:43 PM10/3/06
to Dream...@googlegroups.com
blacksmith77 wrote:
> I have a catalog request form that a requires information that must be
> filled in in order to submit it to an email address . Now every month
> this email address recievces blank request . How does this occur if
> form can not be submitted without required information. Help!!! Thanks

Your form uses JavaScript for validation, some users do not have JavaScript
enabled in their browser due to security reasons, or use an internet device
without JavaScript available (Mobiles, PDA, WebTV). You should also do
validation on the server side.

There are also spam bots that scan sites looking for vulnerable forms that
can be used as a spamming mechanism, these bots also ignore JavaScript, do a
search on "mail header injection", another reason to validate server side.

Regards
Jason


blacksmith77

unread,
Oct 6, 2006, 10:47:17 AM10/6/06
to Dreamweaver


Thanks for the info.

Reply all
Reply to author
Forward
0 new messages