nope... just did an extended find to double-check too.
I took out the cfsetting tags in my app_local.cfm and
now I can see that everything that I cfmodule in is
being run twice (bodycontent.cfm, secureform.cfm,
htmlhead.cfm). Very confusing. Here is the source
now...
<!-- app_local.cfm -->
<!-- secureform.cfm -->
<!-- secureform.cfm -->
<!-- formurl2attributes.cfm -->
<!-- formurl2attributes.cfm -->
<!-- bodycontent.cfm -->
<!-- bodycontent.cfm -->
<!-- app_layout.cfm -->
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Image Uploader</title>
<link rel="stylesheet"
href="commonfiles/css/styles.css" type="text/css" />
<script type="text/javascript" language="JavaScript">
function checkit ()
{
if (dunnit) {
alert ("Please wait for the file to finish
uploading!");
return false;
} else {
dunnit = true;
document.forms[0].submitbtn.disabled =
true;
if (document.layers) // it's Netscape 4.x
{
document.layers["uploadmsg"].visibility="show";
document.layers["uploadmsg"].left=240;
document.layers["uploadmsg"].top=562;
document.layers["uploadmsg"].document.open();
document.layers["uploadmsg"].document.write('<font
face="Helvetica, Arial, sans-serif" size="-1"
color="#990000">Your file is being uploaded, please
wait...</font>');
document.layers["uploadmsg"].document.close()
}
else if (document.all) //it's
IE 4.x or 5.x
{
document.all["uploadmsg"].style.visibility="visible";
document.all["uploadmsg"].style.left=210;
document.all["uploadmsg"].style.top=250;
document.all["uploadmsg"].innerHTML="Your file is
being uploaded, please wait...";
}
else if
(document.getElementById) // it's Netscape or IE 6
{
document.getElementById(uploadmsg).style.visibility="visible";
document.getElementById(uploadmsg).style.left=210;
document.getElementById(uploadmsg).style.top=250;
document.getElementById(uploadmsg).innerHTML="Your
file is being uploaded, please wait..."
}
return true;
}
}
var dunnit = false;
</script>
</head>
<body bgcolor="#ffffff" marginheight="2"
marginwidth="2" topmargin="2" leftmargin="2">
<table cellspacing="0" cellpadding="0" border="0"
width="100%">
<tr><td bgcolor="#ffcc33" class="header">Image
Uploader</td></tr>
</table>
<!--
jsf_submitcheck.cfm -->
<!-- htmlhead.cfm -->
<!-- htmlhead.cfm -->
<!--
qry_IUcategories.cfm -->
<!-- dis_IUform.cfm
-->
<p><strong>The following error(s)
occured:</strong><br />
<div class="alert"></div></p>
<form
action="index.cfm?CFID=182&CFTOKEN=6630447"
method="post" enctype="multipart/form-data"
name="imageuploader" onSubmit="return checkit()">
<table width="100%" cellpadding="2"
cellspacing="0" border="0">
<input type="hidden" name="fa"
value="IUsubmit" />
<input type="hidden" name="submitted"
value="1" />
<tr>
<td colspan="2" class="rowcolor1">Contact
Information</td>
</tr>
<tr>
<td align="right" valign="top" class="alert"
width="18%">*First Name:</td>
<td><input type="text" name="firstname" value=""
size="30" maxlength="50" /></td>
</tr>
<tr>
<td align="right" valign="top" class="alert">*Last
Name:</td>
<td><input type="text" name="lastname" value=""
size="30" maxlength="50" /></td>
</tr>
<tr>
<td align="right" valign="top">Organization:</td>
<td><input type="text" name="organization"
value="" size="35" maxlength="75" /></td>
</tr>
<tr>
<td align="right" valign="top"
class="alert">*Email Address:</td>
<td><input type="Text" name="email" value=""
size="35" maxlength="75" /></td>
</tr>
<tr>
<td align="right" valign="top" class="alert">*Work
Phone:</td>
<td><input type="text" name="workphone" value=""
size="20" maxlength="25" /><br /><span
class="note">Enter as 10 digits. i.e. (703)
345-3435.</span></td>
</tr>
<tr>
<td colspan="2" class="rowcolor1">Image
Information</td>
</tr>
<tr>
<td align="right" valign="top"
class="alert">*Image File:</td>
<td><input type="file" name="imgfile" value=""
size="35" /><br /><span class="note">.gif, .jpg, .png,
tiff OR .bmp files smaller than 40KB
only!</span></td>
</tr>
<tr>
<td align="right" valign="top"
class="alert">*Image File Category:</td>
<td><select name="imgfilecategory">
<option value=""
selected="selected"></option>
<option value="1">Educational
Products</option>
<option value="13">Educational
Programs/Events</option>
<option value="6">Science Center
Shows/Exhibits</option>
<option value="26">Special
Projects</option>
<option value="23">Targeted
Outreach</option></select></td>
</tr>
<tr>
<td align="right" valign="top">Image File
URL:</td>
<td><input type="text" name="imgfileurl" value=""
size="45" maxlength="255" /><br /><span
class="note">If a full version of this image is
available online, please enter the URL above (i.e.
http://www.myimage.com/images/myimage.png).</span></td>
</tr>
<tr>
<td align="right" valign="top"
class="alert">*Description:</td>
<td class="textarea"><textarea
name="imgfiledesc" rows="4" cols="45"
wrap="virtual"></textarea><br /><span
class="note">Maximum of 500 characters.</span></td>
</tr>
<tr>
<td> </td>
<td valign="top" class="alert">*Are
you able to provide a 300dpi or better version of this
image?</td>
</tr>
<tr>
<td> </td>
<td><input type="radio"
name="imgfilebetter" value="y">Yes <input
type="radio" name="imgfilebetter" value="n">No</td>
</tr>
<tr>
<td> </td>
<td valign="top" class="alert">*Do you
have, or are you able to get, permission to publish
this image?</td>
</tr>
<tr>
<td> </td>
<td><input type="radio"
name="imgfilepermission" value="y">Yes <input
type="radio" name="imgfilepermission"
value="n">No</td>
</tr>
<tr>
<td> </td><td><input
type="submit" value="Send" class="button"
name="submitbtn" /></td>
</tr>
</table>
</form>
<!-- hidden div, pops up message after submit
button has been clicked -->
<div id="uploadmsg" style="position: absolute;
z-index: 5; left: 210px; top: 250px; font-family:
Helvetica, Arial, Verdana, sans-serif; font-size:
small; color: #ffffff; background: #990000;
text-align: center; padding: 2px; visibility:
hidden;"></div>
</body>
</html>
--- Roger Dahlstrom <[EMAIL PROTECTED]> wrote:
> You didn't by chance happen to call it in one of
> your included templates by
> accident, did you?
=====
----------------------------
Nathan Shaw
Web Applications Developer
iaffect
http://www.iaffectonline.com
http://www.iaffectTV.com
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists