Copy link to clipboard
Copied
Can anyone help with this?
I have a simple form that allows you to do the first page and review your answers, but when trying to submit the form after review it gives you a 404 error, page not found. And I know that page is there, so I don't understand what is happening. I don't see anything wrong with the code. But here is the Submit portion of the code.
<div style="margin-left:280px;"><p><br />
<button class="btnSubmit" type="submit" value="Submit" onClick="if(this.value == 'Submit') this.form.submit(); this. value = 'Please Wait...';">Submit >></button></div>
</cfform>
</cfoutput>
Any help would be appreciated.
Thanks
Ruby
Copy link to clipboard
Copied
Well, does the page that the form is submitting to exist? I.e. the content of the action="" attribute? What's the content of that? And what's in the URL bar when you get the 404?
Copy link to clipboard
Copied
Yes, the page exists.
<cfform action="subgroup3a.cfm" method="post" class="meetingform"><p>Please review the information below for accuracy. If you need to make changes, click the appropriate section's <strong>Edit Info</strong> link below.</p>
And when you hit the page you get to that url...
Here is the URL of the form if that helps, and I can paste code in as well, if thats helps also.
http://www.ascb.org/meetings/subgroup/SubGroup1old.cfm
Let me know what else you might need.
Thanks
Copy link to clipboard
Copied
Oh and this is what the page says when trying to submit after validation
To assist you in finding the content that you had origionally requested we have the following choices to assist you. |
If you are from the ASCB.org website: |
Please try the following:
Copy link to clipboard
Copied
And you're saying the page http://www.ascb.org/meetings/subgroup/subgroup2.cfm exists? Because it looks like it simply doesn't.
Copy link to clipboard
Copied
Yes, it does exist... here is the code for that page.
<!---<CFTRY>--->
<cfparam name="Form.agree" default="">
<cfparam name="Form.agree2" default="">
<cfset Title = "ASCB Special Interest Subgroups - Review My Work">
<cfset RightNow = #Now()#>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>2011 AM -Subgroup</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="2011 ASCB Annual Meeting" />
<link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/AM.css"/>
<link rel="stylesheet" type="text/css" href="../css/flyout.css" />
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../js/buttons.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<cfinclude template="../includes/header10b.cfm">
<div class="contentArea">
<div align="right" class="countdown">
<script language="JavaScript" type="text/javascript">
document.write(TODAY); </script>
<!---<script language="JavaScript">
TargetDate = "12/3/2011 8:00 AM";
BackColor = "#FFDF01";
ForeColor = "#003";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds left.";
FinishMessage = "";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>---> </div>
<ul class="leftnavigation">
<cfinclude template="../includes/menu.cfm">
<div>
<p> </p>
<p><center></center></p>
</div>
</ul>
<div class="content">
<div class="contentleft">
<h1>Special Interest Subgroups</h1>
<!--- Content Section Begins Here --->
<cfoutput>
</cfoutput></span><cfoutput>
<cfform action="subgroup3.cfm" method="post" class="meetingform"><p>Please review the information below for accuracy. If you need to make changes, click the appropriate section's <strong>Edit Info</strong> link below.</p>
<fieldset>
<p align="left"><strong>*Denotes required field</strong></p>
<legend><strong>Main Organizer Contact Information:</strong></legend><p><a href="javascript:history.go(-1)">Edit Info</a></p><p>
<label for="organizer" class="required">* First Name:</label>
#Form.fname#
<cfinput type="hidden" name="fname" value="#Form.fname#">
</p><p>
<label for="organizer" class="required">* Last Name:</label>
#Form.lname#
<cfinput type="hidden" name="lname" value="#Form.lname#">
</p><p>
<label for="institution" class="required">* Institution:</label>
#Form.institution#
<cfinput type="hidden" name="institution" value="#Form.institution#">
</p><p>
<label for="dept">Department:</label>
<cfif Form.dept is not "">
#Form.dept#
</cfif>
<cfinput type="hidden" name="dept" value="#Form.dept#">
</p><p>
<label for="address" class="required">* Address:</label>
#Form.address#
<cfinput type="hidden" name="address" value="#Form.address#">
</p><p>
<label for="address">Address (cont):</label>
#Form.address1#
<cfinput type="hidden" name="address1" value="#Form.address1#"></p><p>
<label for="city" class="required">* City:</label>
#Form.city#
<cfinput type="hidden" name="city" value="#Form.city#">
</p><p>
<label for="state" class="required">* State:</label>
#Form.state#
<cfinput type="hidden" name="state" value="#Form.state#">
</p><p>
<label for="zip" class="required">* Zip/Postal Code:</label>
#Form.zip#
<cfinput type="hidden" name="zip" value="#Form.zip#">
</p><p>
<label for="country" class="required">* Country:</label>
#Form.country#
<cfinput type="hidden" name="country" value="#Form.country#">
</p><p>
<label for="phone" class="required">* Phone:</label>
#Form.phone#
<cfinput type="hidden" name="phone" value="#Form.phone#">
</p><p>
<label for="fax">Fax:</label>
<cfif Form.fax is not "">
#Form.fax#
</cfif>
<cfinput type="hidden" name="fax" value="#Form.fax#">
</p><p>
<label for="email" class="required">* Email:</label>
#Form.email#
<cfinput type="hidden" name="email" value="#Form.email#">
</p><p>
<label for="alternateemail">Alternate Email:</label>
<cfif Form.alternateemail is not "">
#Form.alternateemail#
</cfif>
<cfinput type="hidden" name="alternateemail" value="#Form.alternateemail#">
</p><p>
<label for="CareerLevel">* Career Level:</label>
#Form.CareerLevel#
<cfinput type="hidden" name="CareerLevel" value="#Form.CareerLevel#">
</p>
</fieldset>
<fieldset><p>
<legend><strong>Co-Organizers</strong></legend>
</p><p><a href="javascript:history.go(-1)">Edit Info</a></p>
<CFIF form.fname1 EQ "" AND form.fname2 EQ "">
<p>NO Co-organizers</p>
<CFELSE>
<h2>Co-Organizer ##1:</h2>
<p>
<label for="fname1">* First Name:</label>
#Form.fname1#
<cfinput type="hidden" name="fname1" value="#form.fname1#">
</p>
<p>
<label for="lname1">* Last Name:</label>
#Form.lname1#
<cfinput type="hidden" name="lname1" value="#form.lname1#">
</p>
<p>
<label for="institution1">* Institution:</label>
#Form.institution1#
<cfinput type="hidden" name="institution1" value="#form.institution1#">
</p>
<p>
<label for="email1">* Email:</label>
#Form.email1#
<cfinput type="hidden" name="email1" value="#form.email1#">
</p>
<p>
<label for="CareerLevel1">* Career Level:</label>
#Form.CareerLevel1#
<cfinput type="hidden" name="CareerLevel1" value="#form.CareerLevel1#">
</p>
<h2>Co-Organizer ##2:</h2>
<p>
<label for="fname2">* First Name:</label>
#Form.fname2#
<cfinput type="hidden" name="fname2" value="#form.fname2#">
</p>
<p>
<label for="lname2">* Last Name:</label>
#Form.lname2#
<cfinput type="hidden" name="lname2" value="#form.lname2#">
</p>
<p>
<label for="institution2">* Institution:</label>
#Form.institution2#
<cfinput type="hidden" name="institution2" value="#form.institution2#">
</p>
<p>
<label for="email2">* Email:</label>
#Form.email2#
<cfinput type="hidden" name="email2" value="#form.email2#">
</p>
<p>
<label for="CareerLevel2">* Career Level:</label>
#Form.CareerLevel2#
<cfinput type="hidden" name="CareerLevel2" value="#form.CareerLevel2#">
</p>
</cfif>
</fieldset>
<fieldset><p>
<legend><strong>Proposed Special Interest Subgroup Details:</strong></legend>
</p><p><a href="javascript:history.go(-1)">Edit Info</a></p>
<p>
<label for="ProposedTitle">* ProposedTitle:</label>
#Form.ProposedTitle#
<cfinput type="hidden" name="ProposedTitle" value="#form.ProposedTitle#">
</p>
<p>
<label for="ProposedDescription">* Proposed Description:</label>
#Form.ProposedDescription#
<cfinput type="hidden" name="ProposedDescription" value="#form.ProposedDescription#">
</p>
<p>
<label for="ProposedSpeakers">* Proposed Speakers:</label>
#Form.ProposedSpeakers#
<cfinput type="hidden" name="ProposedSpeakers" value="#form.ProposedSpeakers#">
</p>
<p>
<label for="AnticipatedAttendance">* Anticipated Attendance:</label>
#Form.AnticipatedAttendance#
<cfinput type="hidden" name="AnticipatedAttendance" value="#form.AnticipatedAttendance#">
</p>
<p>
<label for="IAffirm">* I am an ASCB member:</label>
<CFIF IsDefined("form.IAffirm")>
Checked<cfinput type="hidden" name="IAffirm" value="#form.IAffirm#">
<CFELSE>
Not checked<cfinput type="hidden" name="IAffirm" value="Not Checked">
</cfif>
</p>
<p>
<label for="IAccept">* I will be able to provide a completed schedule:</label>
<CFIF IsDefined("form.IAccept")>
Checked<cfinput type="hidden" name="IAccept" value="#form.IAccept#">
<CFELSE>
Not checked<cfinput type="hidden" name="IAccept" value="Not Checked">
</cfif>
</p>
</fieldset>
<div style="margin-left:280px;"><p><br />
<button class="btnSubmit" type="submit" value="Submit" onClick="if(this.value == 'Submit') this.form.submit(); this. value = 'Please Wait...';">Submit >></button></div>
</cfform>
</cfoutput>
<!--- Content Section Ends Here ---> </p>
</div>
<div class="contentright">
<!-- AddThis Button BEGIN -->
<!---<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=ehailu"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" alt="Bookmark and Share" width="125" height="16" align="right" style="border:0"/></a>---><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=ehailu"></script>
<!-- AddThis Button END -->
<div class="Accordion" ><br /><br /> <!---<img src="../images/registration.gif" width="191" height="250" hspace="25" border="0" usemap="#Map5" />
<map name="Map5" id="Map5">--->
<area shape="rect" coords="12,9,182,37" href="http://www.ascb.org/index.php?option=com_content&view=article&id=1&Itemid=2" target="_blank" />
<area shape="rect" coords="8,49,186,79" href="https://www.xpressreg.net/register/cell120/default.asp" target="_blank" />
<area shape="rect" coords="8,89,185,114" href="http://ascb.abstractcentral.com/" target="_blank" />
<area shape="rect" coords="5,163,185,196" href="https://onpeak.compassreservations.com/compass/webdirect.cfm?code=ASCB10" />
<area shape="rect" coords="6,126,181,158" href="http://www.ascb.org/meetings/travel_awards.cfm" target="_blank" />
<area shape="rect" coords="7,211,183,237" href="http://www.xpressreg.net/register/cell120/group/login.asp" target="_blank" />
</map></div><br />
<!---<cfinclude template="../includes/spry.cfm">--->
<div class="AccordionBottom"></div>
</div>
<div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
</div>
<div class="footerArea">
<cfinclude template="../includes/footer.cfm">
</div>
</div>
<map name="Map" id="Map">
<area shape="rect" coords="0,2,31,31" href="http://www.facebook.com/AmerSocCellBio" target="_blank" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="0,1,29,31" href="http://twitter.com/AmerSocCellBio" target="_blank" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="3,4,31,29" href="http://www.linkedin.com/groupInvitation?gid=80899&sharedKey=08B7E41AC93A" target="_blank" />
</map>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6979852-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
<!---<cfcatch>
</cfcatch>
</cftry>--->
Copy link to clipboard
Copied
Okay, well if I browse to http://www.ascb.org/meetings/subgroup/subgroup2.cfm I get the same message, a 404. It is therefore nothing to do with your code, it's nothing to do with your form - either the page is not there, or there's something in your Application.cfc or possibly a rewrite rule somewhere that's causing you a problem.
It's not your form though, so don't spend any more time on that.
Copy link to clipboard
Copied
subgroup2.cfm works fine - If you go through the form (which I have renamed to http://www.ascb.org/meetings/subgroup/subgroup1NOTWORKING.cfm - cause I put something in its place for the time being), it will take you to the page http://www.ascb.org/meetings/subgroup/subgroup2.cfm fine.
Its when I go try to submit from their that I get the problem. But subgroup3 is there.
We don't have any rewrite codes, so that can't be it. And I don't see a problem with the Application.cfc file either.
Copy link to clipboard
Copied
Here is the code from the page subgroup3.cfm
<cfparam name="Form.meeting_year" default="2011">
<cfparam name="Form.agree" default="">
<cfparam name="Form.agree2" default="">
<cfset Title = "ASCB Special Interest Subgroups - Confirmation">
<cfset RightNow = #Now()#>
<!--- Edit / Update --->
<cfif IsDefined("Form.ID")>
<cfset method="update">
<cfelse>
<cfset method="add">
</cfif>
<CFPARAM NAME="form.fname1" default="">
<CFPARAM NAME="form.lname1" default="">
<CFPARAM NAME="form.institution1" default="">
<CFPARAM NAME="form.email1" default="">
<CFPARAM NAME="form.careerlevel1" default="">
<CFPARAM NAME="form.fname2" default="">
<CFPARAM NAME="form.lname2" default="">
<CFPARAM NAME="form.institution2" default="">
<CFPARAM NAME="form.email2" default="">
<CFPARAM NAME="form.careerlevel2" default="">
<!--- Do it --->
<cfinvoke component="subgroup" method="#method#">
<!--- ID only if update method --->
<cfif IsDefined("FORM.ID")>
<cfinvokeargument name="ID" value="#Form.ID#">
</cfif>
<cfinvokeargument name="meeting_year" value="#Trim(Form.meeting_year)#">
<cfinvokeargument name="fname" value="#Trim(Form.fname)#">
<cfinvokeargument name="lname" value="#Trim(Form.lname)#">
<cfinvokeargument name="institution" value="#Trim(Form.institution)#">
<cfinvokeargument name="dept" value="#Trim(Form.dept)#">
<cfinvokeargument name="address" value="#Trim(Form.address)#">
<cfinvokeargument name="address1" value="#Trim(Form.address1)#">
<cfinvokeargument name="city" value="#Trim(Form.city)#">
<cfinvokeargument name="state" value="#Trim(Form.state)#">
<cfinvokeargument name="zip" value="#Trim(Form.zip)#">
<cfinvokeargument name="country" value="#Trim(Form.country)#">
<cfinvokeargument name="phone" value="#Trim(Form.phone)#">
<cfinvokeargument name="fax" value="#Trim(Form.fax)#">
<cfinvokeargument name="email" value="#Trim(Form.email)#">
<cfinvokeargument name="alternateemail" value="#Trim(Form.alternateemail)#">
<cfinvokeargument name="CareerLevel" value="#Trim(Form.CareerLevel)#">
<cfinvokeargument name="fname1" value="#Trim(Form.fname1)#">
<cfinvokeargument name="lname1" value="#Trim(Form.lname1)#">
<cfinvokeargument name="institution1" value="#Trim(Form.institution1)#">
<cfinvokeargument name="email1" value="#Trim(Form.email1)#">
<cfinvokeargument name="CareerLevel1" value="#Trim(Form.CareerLevel1)#">
<cfinvokeargument name="fname2" value="#Trim(Form.fname2)#">
<cfinvokeargument name="lname2" value="#Trim(Form.lname2)#">
<cfinvokeargument name="institution2" value="#Trim(Form.institution2)#">
<cfinvokeargument name="email2" value="#Trim(Form.email2)#">
<cfinvokeargument name="CareerLevel2" value="#Trim(Form.CareerLevel2)#">
<cfinvokeargument name="ProposedTitle" value="#Trim(Form.ProposedTitle)#">
<cfinvokeargument name="ProposedDescription" value="#Trim(Form.ProposedDescription)#">
<cfinvokeargument name="ProposedSpeakers" value="#Trim(Form.ProposedSpeakers)#">
<cfinvokeargument name="AnticipatedAttendance" value="#Trim(Form.AnticipatedAttendance)#">
<cfinvokeargument name="IAffirm" value="#Trim(Form.IAffirm)#">
<cfinvokeargument name="IAccept" value="#Trim(Form.IAccept)#">
</cfinvoke>
<cfmail from="ascbinfo@ascb.org" to="#form.email#" cc="mmccormack@ascb.org" bcc="edbaur@golfmd.com" subject="2011 Special Interest Subgroup - #Form.fname# #Form.lname#">
Thank you for registering in the Special Interest Subgroups. Provided are the details of your registration. If there are any discrepancies or questions, please contact Alison Harris at aharris@ascb.org or (301) 347-9346.
First Name: #Form.fname#
Last Name: #Form.lname#
Institution: #Form.institution#
Department: <cfif Form.dept is not "">#Form.dept#<cfelse></cfif>
Address: #Form.address#
Address (cont): <cfif Form.address1 is not "">#Form.address1#<cfelse></cfif>
City: #Form.city#
State: #Form.state#
Zip/Postal Code: #Form.zip#
Country: #Form.country#
Phone: #Form.phone#
Fax: <cfif Form.fax is not "">#Form.fax#<cfelse></cfif>
Email: #Form.email#
Alternate Email: #Form.AlternateEmail#
Career Level: #form.CareerLevel#
Co-Organizer1
First Name: #form.fname1#
Last Name: #form.lname1#
Institution: #form.Institution1#
Email: #form.email1#
Career Level: #form.CareerLevel1#
Co-Organizer2
First Name: #form.fname2#
Last Name: #form.lname2#
Institution: #form.Institution2#
Email: #form.email2#
Career Level: #form.CareerLevel2#
Proposed Special Interest Subgroup Details:
Proposed Title: #form.ProposedTitle#
Proposed Description: #form.ProposedDescription#
Proposed Speakers: #form.ProposedSpeakers#
Anticipated Attendance: #form.AnticipatedAttendance#
I am an ASCB member: #form.IAffirm#
I will be able to provide a completed schedule: #form.IAccept#
</cfmail>
<cfmail from="ascbinfo@ascb.org" to="aharris@ascb.org" cc="mmccormack@ascb.org" bcc="edbaur@golfmd.com" subject="2011 Special Interest Subgroup - #Form.fname# #Form.lname#">
You have received a Special Interest Subgroup application:
First Name: #Form.fname#
Last Name: #Form.lname#
Institution: #Form.institution#
Department: <cfif Form.dept is not "">#Form.dept#<cfelse></cfif>
Address: #Form.address#
Address (cont): <cfif Form.address1 is not "">#Form.address1#<cfelse></cfif>
City: #Form.city#
State: #Form.state#
Zip/Postal Code: #Form.zip#
Country: #Form.country#
Phone: #Form.phone#
Fax: <cfif Form.fax is not "">#Form.fax#<cfelse></cfif>
Email: #Form.email#
Alternate Email: #Form.AlternateEmail#
Career Level: #form.CareerLevel#
Co-Organizer1
First Name: #form.fname1#
Last Name: #form.lname1#
Institution: #form.Institution1#
Email: #form.email1#
Career Level: #form.CareerLevel1#
Co-Organizer2
First Name: #form.fname2#
Last Name: #form.lname2#
Institution: #form.Institution2#
Email: #form.email2#
Career Level: #form.CareerLevel2#
Proposed Special Interest Subgroup Details:
Proposed Title: #form.ProposedTitle#
Proposed Description: #form.ProposedDescription#
Proposed Speakers: #form.ProposedSpeakers#
Anticipated Attendance: #form.AnticipatedAttendance#
I am an ASCB member: #form.IAffirm#
I will be able to provide a completed schedule: #form.IAccept#
</cfmail>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>2010 AM -Subgroup</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="description" content="2010 ASCB Annual Meeting" />
<link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/AM.css"/>
<link rel="stylesheet" type="text/css" href="../css/flyout.css" />
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../js/buttons.js" type="text/javascript"></script>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<cfinclude template="../includes/header10b.cfm">
<div class="contentArea">
<div align="right" class="countdown">
<script language="JavaScript" type="text/javascript">
document.write(TODAY); </script>
<script language="JavaScript">
TargetDate = "12/11/2010 8:00 AM";
BackColor = "#FFDF01";
ForeColor = "#003";
CountActive = true;
CountStepper = -1;
LeadingZero = true;
DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds left.";
FinishMessage = "";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script> </div>
<ul class="leftnavigation">
<cfinclude template="../includes/menu.cfm">
<div>
<p> </p>
<p><center></center></p>
</div>
</ul>
<div class="content">
<div class="contentleft">
<h1>Special Interest Subgroups</h1>
<!--- Content Section Begins Here --->
<cfoutput>
</cfoutput></span><cfoutput>
<div class="meetingform">
<p class="bodyText">Thank you for submitting your Special Interest Subgroup application. Organizers will be notified of a decision by August 12.<br />
<br />You may wish to <a href="javascript:window.print()">print</a> this page for your records. If you have any questions, please contact <a href="mailto:aharris@ascb.org">Alison Harris</a> at (301) 347-9346.</p>
<fieldset>
<legend>Contact Information:</legend>
<p>
<label for="organizer" class="required">* First Name:</label>
#Form.fname#</p>
<p>
<label for="organizer" class="required">* Last Name:</label>
#Form.lname#</p>
<p>
<label for="institution" class="required">* Institution:</label>
#Form.institution#</p>
<p>
<label for="dept">Department:</label>
#Form.dept#</p>
<p>
<label for="address" class="required">* Address:</label>
#Form.address#</p>
<p>
<label for="address">Address (cont):</label>
#Form.address1#</p>
<p>
<label for="city" class="required">* City:</label>
#Form.city#</p>
<p>
<label for="state" class="required">* State:</label>
#Form.state#</p>
<p>
<label for="zip" class="required">* Zip/Postal Code:</label>
#Form.zip#</p>
<p>
<label for="country" class="required">* Country:</label>
#Form.country#</p>
<p>
<label for="phone" class="required">* Phone:</label>
#Form.phone#</p>
<p>
<label for="fax">Fax:</label>
<cfif Form.fax is not "">
#Form.fax#
</cfif></p>
<p>
<label for="email" class="required">* Email:</label>
#Form.email#</p>
<p>
<label for="alternateemail" class="required">* Alternate Email:</label>
#Form.alternateemail#</p>
<p>
<label for="CareerLevel" class="required">* Career Level:</label>
#Form.CareerLevel#</p>
</fieldset>
<fieldset>
<legend>Co-Organizers:</legend>
<p>
<CFIF form.fname1 EQ "" AND form.fname2 EQ "">
<p>NO Co-organizers</p>
<CFELSE>
<h2>Co-Organizer ##1:</h2>
<p>
<label for="fname1" class="required">* First Name:</label>
#form.fname1#</p>
<p>
<label for="lname1" class="required">* Last Name:</label>
#form.lname1#</p>
<p>
<label for="institution1" class="required">* Institution:</label>
#form.institution1#</p>
<label for="email1" class="required">* Email:</label>
#form.email1#</p>
<label for="CareerLevel1" class="required">* Career Level:</label>
#form.CareerLevel1#</p>
<h2>Co-Organizer ##2:</h2>
<p>
<label for="fname2" class="required">* First Name:</label>
#form.fname2#</p>
<p>
<label for="lname2" class="required">* Last Name:</label>
#form.lname2#</p>
<p>
<label for="institution2" class="required">* Institution:</label>
#form.institution2#</p>
<label for="email2" class="required">* Email:</label>
#form.email2#</p>
<label for="CareerLevel2" class="required">* Career Level:</label>
#form.CareerLevel2#</p>
</cfif>
</fieldset>
<fieldset><p>
<legend><strong>Proposed Special Interest Subgroup Details:</strong></legend>
<p>
<label for="ProposedTitle" class="required">* Proposed Title:</label>
#form.ProposedTitle#</p>
<p>
<label for="ProposedDescription" class="required">* Proposed Description:</label>
#form.ProposedDescription#</p>
<p>
<label for="ProposedSpeakers" class="required">* Proposed Speakers:</label>
#form.ProposedSpeakers#</p>
<p>
<label for="AnticipatedAttendance" class="required">* Anticipated Attendance:</label>
#form.AnticipatedAttendance#</p>
<p>
<label for="IAffirm" class="required">* I am an ASCB member:</label>
#form.IAffirm#</p>
<label for="IAccept" class="required">* I will provide a complete schedule:</label>
#form.IAccept#</p>
</fieldset>
</div>
</cfoutput>
<!--- Content Section Ends Here ---> </p>
</div>
<div class="contentright">
<!-- AddThis Button BEGIN -->
<!---<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&username=ehailu"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" alt="Bookmark and Share" width="125" height="16" align="right" style="border:0"/></a>---><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=ehailu"></script>
<!-- AddThis Button END -->
<div class="Accordion" ><!---<img src="../images/registration.gif" width="191" height="250" hspace="25" border="0" usemap="#Map5" />
<map name="Map5" id="Map5">--->
<area shape="rect" coords="12,9,182,37" href="http://www.ascb.org/index.php?option=com_content&view=article&id=1&Itemid=2" target="_blank" />
<area shape="rect" coords="8,49,186,79" href="https://www.xpressreg.net/register/cell120/default.asp" target="_blank" />
<area shape="rect" coords="8,89,185,114" href="http://ascb.abstractcentral.com/" target="_blank" />
<area shape="rect" coords="5,163,185,196" href="https://onpeak.compassreservations.com/compass/webdirect.cfm?code=ASCB10" />
<area shape="rect" coords="6,126,181,158" href="http://www.ascb.org/meetings/travel_awards.cfm" target="_blank" />
<area shape="rect" coords="7,211,183,237" href="http://www.xpressreg.net/register/cell120/group/login.asp" target="_blank" />
</map>
<br /><br />
</div><br />
<!---<cfinclude template="../includes/spry.cfm">--->
<div class="AccordionBottom"></div>
</div>
<div style="clear:both;"></div>
</div>
<div style="clear:both;"></div>
</div>
<div class="footerArea">
<cfinclude template="../includes/footer.cfm">
</div>
</div>
<map name="Map" id="Map">
<area shape="rect" coords="0,2,31,31" href="http://www.facebook.com/AmerSocCellBio" target="_blank" />
</map>
<map name="Map2" id="Map2">
<area shape="rect" coords="0,1,29,31" href="http://twitter.com/AmerSocCellBio" target="_blank" />
</map>
<map name="Map3" id="Map3">
<area shape="rect" coords="3,4,31,29" href="http://www.linkedin.com/groupInvitation?gid=80899&sharedKey=08B7E41AC93A" target="_blank" />
</map>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-6979852-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
Copy link to clipboard
Copied
and here is the application.cfc page. I've been looking at this way too long, everything is starting to blend together.....
<!--- Filename: Application.cfc (The “Application Component”) Purpose: Sets “constant” variables and includes consistent header --->
<cfcomponent output="false">
<cfset THIS.name = "ASCB">
<cferror type="Request" template="ErrorRequest.cfm" mailto="mm@ascb.org">
<cferror type="Exception" template="ErrorException.cfm" mailto="mm@ascb.org">
<cferror type="Validation" template="ErrorValidation.cfm" mailto="mm@ascb.org">
<cffunction name="onApplicationStart" returnType="boolean" output="false">
<!--- When did the application start? --->
<cfset APPLICATION.appStarted = now()>
<cfreturn true>
</cffunction>
<cffunction name="onApplicationEnd" returnType="void" output="false">
<cfargument name="appScope" required="true">
<!--- Log how many minutes the application stayed alive --->
<cflog file="#THIS.name#" text="App ended after #dateDiff('n',ARGUMENTS.appScope.appStarted,now())# minutes.">
</cffunction>
<cffunction name="onRequestStart" returnType="boolean" output="true">
<!--- Any variables set here can be used by all our pages --->
<cfset REQUEST.dataSource = "SQLFORMS">
<cfset REQUEST.username = "web">
<cfset REQUEST.password = "web">
<cfset REQUEST.companyName = "The American Society for Cell Biology">
<cfreturn true>
</cffunction>
<cffunction name="onRequest" returnType="void" outout="true">
<cfargument name="targetPage" type="string" required="true">
<cfset var content = "">
<cfif not isDefined("URL.print")>
<cfinclude template="#arguments.targetPage#">
<cfelse>
<!--- Show the Print version, First we let the file run and save the result --->
<cfsavecontent variable="content">
<cfinclude template="#arguments.targetPage#">
</cfsavecontent>
<!--- Remove HTML --->
<cfset content = reReplace(content,"<.*?>","","all")>
<cfoutput><pre>#content#</pre></cfoutput>
</cfif>
</cffunction>
<cffunction name="onError" returnType="void" output="false">
<cfargument name="exception" required="true">
<cfargument name="eventName" type="string" required="true">
<!--- Use the cflog tag to record info on the error --->
<cfif arguments.eventName is "">
<cflog file="#THIS.name#" type="error" text="#arguments.exception.message#">
<cfelse>
<cflog file="#THIS.name#" type="error" text="Error in Method [#arguments.eventName#] #arguments.exception.message#">
</cfif>
<!--- Let the <cferror> tags do their job. --->
<cfthrow object="#arguments.exception#">
</cffunction>
</cfcomponent>
Copy link to clipboard
Copied
Right, calm yourself. There's nothing I can immediately see in your App.cfc that should cause an issue.
What *will* cause you an issue is that this page doesn't exist, and you appear to be saying it does.
Copy link to clipboard
Copied
It does exist
You can put in dummy information here http://www.ascb.org/meetings/subgroup/subgroup1NOTWORKING.cfm, and when you hit submit subgroup2.cfm will disply properly. You can try it if you want. The information goes to me.
Copy link to clipboard
Copied
Try removing all your Error Handling from your App.cfc. You might well have an error being thrown on the target page which is then trying to call an error template that doesn't exist, and it's actually that which is giving you the 404.
Comment out all the error handling, then debug the target page.
Copy link to clipboard
Copied
I got it! I am almost certain it was user error that has been throwing me through a loop. Here is what I found out...
This line in the form must be filled in correctly
* Anticipated Attendance for the session:
(IMPORTANT: Please enter only numbers)
If it is not just a number the form calls the errorexception.cfm page, which is what is displaying the 404 message. It's not returning a 404 page, the actual text of the errorexception.cfm reads
<!--- Filename: ErrorException.cfm
Please Note: Included via <CFERROR> in Application.cfc --->
<html><head><title>Error</title></head>
<body>
<!--- Display sarcastic message to poor user --->
<h3>Sorry, the page you have requested was not found on the ASCB web site.</h3>
<h3>The page you are looking for may have been removed, had its name changed, or is temporarily unavailable.</h3>
<hr size="1" width="100%">
<table width="500" border="0" cellpadding="4" cellspacing="0" align="center">
<tr>
<td><h4>To assist you in finding the content that you had origionally requested we have the following choices to assist you.</h4></td>
</tr>
<tr>
<td valign="top"><h4>If you are from the ASCB.org website:
<ul>
<li><a href="http://www.ascb.org">ASCB Homepage</a></li>
<li><a href="http://www.ascb.org/index.cfm?navid=117&tcode=srch">ASCB Search page</a></li>
<li><a href="http://www.ascb.org/index.cfm?navid=118&tcode=stmp">ASCB Sitemap</a></li>
</ul></h4></td>
</tr>
</table>
<hr size="1" width="100%">
<p>Please try the following:</p>
<ul>
<li>Make sure that the web site address displayed in the address bar of your browser is spelled and formatted correctly.</li>
<li>If you reached this page by clicking a link, contact the <a href="mailto:webmaster@ascb.org">Web Site Administrator</a> to alert them that the link is incorrect.</li>
<li>Use the Search, listed above to locate similar pages on our site.</li>
</ul>
<br />
<!--- Send an email message to site administrator --->
<!--- (or whatever address provided to <cferror>) --->
<cfif ERROR.mailTo neq "">
<cfmail to="#ERROR.mailTo#, ascbinfo@ascb.org" from="ascbinfo@ascb.org" subject="Error on Page #ERROR.Template#" server="mail.ascb.org">
Error Date/Time: #ERROR.dateTime#
User’s Browser: #ERROR.browser#
URL Parameters: #ERROR.queryString#
Previous Page: #ERROR.HTTPReferer#
------------------------------------
#ERROR.diagnostics#
</cfmail>
</cfif>
I love you for helping me! Thank you soooo much!
Copy link to clipboard
Copied
Ha, glad you got it sorted. It only begs the question "why are you displaying a 404 error in a non-404 error handler?"
And possibly change:
<!--- Display sarcastic message to poor user --->
to
<!--- Display unhelpful and misleading error message to poor downtrodden developer --->
Copy link to clipboard
Copied
I have already changed that - I didn't set up these forms, I was just hired so my job is to sort through all this and fix it up. But yes, that is the first thing I did when I realized that it wasn't a true 404 error. What a mess!
Again, thank you so much for helping - you kept me sane, cause I was going nuts!
Copy link to clipboard
Copied
Not a problem, I've had a lot of time to pass today
Best of luck.
Copy link to clipboard
Copied
So you're telling me that if you visit this page in a browser it works?
http://www.ascb.org/meetings/subgroup/subgroup2.cfm
Because it simply does not for me.