I am trying to create a self submitting form. I have something basic right now just to see if it works. What i am trying to do is to get the cfoutput to change when the form is submitted. When i try the form i don’t get any errors and the cfoutput does not change. I am new to Cold Fusion any help is appreciated. Thanks
<cfif NOT isDefined("form.submit")>
<cfset #FormSumit# = "Form Not Submitted">
<cfelse>
<cfset #FormSumit# = "Form Submitted">
</cfif>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Form Submission</title>
</head>
<body>
<cfoutput>#FormSumit#</cfoutput>
<cfform method="post">
<cfinput type="text" name="FirstName" >
<cfinput type="text" name="LastName" >
<cfinput type="submit" name="submit">
</cfform>
</body>
</html>