Question
Pretty simple cfm giving me lots of problems
First off, i am pretty new to cold fusion and am attempting to use it as a backend to flex, but on to the question.
I am following along a tutorial in Flex For Developers and am attempting to create a pretty simple form. Using the code below, which seems to follow the book, doesn't work. Any help getting this to work would be great.
<cfprocessingdirective suppresswhitespace="yes" pageencoding="utf-8">
<cfif isDefined("ReceivedSent") and isDefined("ReceivedSentDate") and isDefined("PhaseID") and isDefined("SubPhase") and isDefined("SubID") and isDefined("SubVendorName")
and ReceivedSent NEQ "" and ReceivedSentDate NEQ "" and PhaseID NEQ "" and SubPahse NEQ "" and SubID NEQ "" and SubVendorName NEQ "">
<cfquery name="AddInfo" datasource="mailtracker">
Insert into MailLog(LoggedDate, Received/Sent, Received/SentDate, PhaseID, SubPhase, SubID, Sub/VendorName, Subject,Remarks)
Values (getDate(),"#ReceivedSent#","#ReceivedSentDate#","#PhaseID#","#SubPhase#","#SubID#","#SubVendorName#","#Subject#","#Remarks#")
</cfquery>
</cfif>
<cfquery name="allInfo" datasource="mailtracker">
Select LoggedDate, Received/Sent as ReceivedSent, Received/SentDate as ReceivedSentDate, PhaseID, SubPhase, SubID, Sub/VendorName as SubVendorName, Subject, Subject, Remarks
From MailLog
</cfquery>
<cfxml variable="mesageXML">
<logs>
<cfloop query="allInfo">
<cfoutput>
<maillog>
<LoggedDate>#LoggedDate#</Loggeddate>
<ReceivedSent>#ReceivedSent#</ReceivedSent>
<ReceivedSentDate>#ReceivedSentDate#</ReceivedSentDate>
<PhaseID>#PhaseID#</PhaseID>
<SubPhase>#SubPhase#</SubPhase>
<SubID>#SubID#</SubID>
<SubVendorName>#SubVendorName#</SubVendorName>
<Subject>#Subject#</Subject>
<Subject>#Subject#</Subject>
<Remarks>#Remarks#</Remarks>
</maillog>
</cfoutput>
</cfloop>
</logs>
</cfxml>
<cfoutput>#messageXML#</cfoutput>
</cfprocessingdirective>
