Question
Coldfusion forms retain information. Information shows on multiple computers
Hopefully this is the correct forum to address this problem.
I am working on a website that has one form that uses coldfusion to post information to a database. This form saves the information correctly and is linked to 50 or so pages. But there is a troubling issue.
When a person fills out the form on a newly create page (name, address, phone number etc)...their information stays in the form field boxes, even on other computers.
So if I fill out a form and a co-worker goes to that same page on their computer, my information will appear on his computer. This remains the case until my original computer is rebooted.
I am not a coldfusion programmer and though I have been reading tutorials and trying a few tags (no-cache type of stuff) I cannot fix this problem.
If you know what is going on and can help me fix it please write out the directions very clearly step by step- I need to know right where the tags and coding should go.
Here is the code from the form. Does there need to be another line of code that prevents the information from being displayed on the next computer? The information from the form gets posted to SQL ( I use enterprise manager to access the database).
<cfform action="/main/forms/contactresponse.cfm" method="post">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td id="formlabel"><span class="formrequired">*</span>First Name:</td>
<td id="formfields"><cfif isDefined('SESSION.SFirstName')><cfinput required="Yes" message="Please enter first name!" name="FirstName" type="text" id="FirstName" size="40" maxlength="100" value="#SESSION.SFirstName#">
<cfelseif NOT isDefined('SESSION.SFirstName')><cfinput required="Yes" message="Please enter first name!" name="FirstName" type="text" id="FirstName" size="40" maxlength="100"></cfif>
I am working on a website that has one form that uses coldfusion to post information to a database. This form saves the information correctly and is linked to 50 or so pages. But there is a troubling issue.
When a person fills out the form on a newly create page (name, address, phone number etc)...their information stays in the form field boxes, even on other computers.
So if I fill out a form and a co-worker goes to that same page on their computer, my information will appear on his computer. This remains the case until my original computer is rebooted.
I am not a coldfusion programmer and though I have been reading tutorials and trying a few tags (no-cache type of stuff) I cannot fix this problem.
If you know what is going on and can help me fix it please write out the directions very clearly step by step- I need to know right where the tags and coding should go.
Here is the code from the form. Does there need to be another line of code that prevents the information from being displayed on the next computer? The information from the form gets posted to SQL ( I use enterprise manager to access the database).
<cfform action="/main/forms/contactresponse.cfm" method="post">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td id="formlabel"><span class="formrequired">*</span>First Name:</td>
<td id="formfields"><cfif isDefined('SESSION.SFirstName')><cfinput required="Yes" message="Please enter first name!" name="FirstName" type="text" id="FirstName" size="40" maxlength="100" value="#SESSION.SFirstName#">
<cfelseif NOT isDefined('SESSION.SFirstName')><cfinput required="Yes" message="Please enter first name!" name="FirstName" type="text" id="FirstName" size="40" maxlength="100"></cfif>
