Question
reloading a cfimport
so i've got this form which i've been developing to make it a
drag and drop type form -- IE all i have to do is place the file in
the directory and link the document to it
problem im having is when the form is submitted id LIKE it to refresh the cfimport without reloading the rest of the page
is this possible?
below is the code im working with:
<div id="feedback">
<h1>Feedback</h1>
<h2>Help us help you</h2>
<cfparam name="url.step" default="1">
<cfif url.step EQ 1>
<cfform name="contact" action="server_extContact.cfm?step=2" method="post">
First Name:*<br />
<cfinput type=text name="firstName" size=35 required="Yes" message="First Name is Required"><br />
Last Name:*<br />
<cfinput type=text name="lastName" size=35 required="Yes" message="Last Name is Required"><br />
Your Email:<br />
<cfinput type=text name="email" size=35 required="No"><br />
Comments:<br />
<textarea name="comments" rows=5 cols=25></textarea><br />
<input type="submit" value="Send">
<h6>Required fields are marked with a *</h6>
</cfform>
<cfelseif url.step EQ 2>
<cfmail
server="fish.iservetech.com"
from="#form.email#"
to="contact@pittsburgheck.com"
subject="PittsburghECK Email">
<!--- --->Contact from PittsburghECK.com:
<!--- --->First Name: #form.firstName#
<!--- --->Last Name: #form.lastName#
<!--- --->Email: #form.email#
<!--- --->Comments: #form.comments#
</cfmail>
<h1>Email</h1>
<h2>submitted</h2>
<div class="spacer">
<p class="post">
Thanks for the email! We will be contacting you shortly to verify your information.
</p>
</div>
</cfif>
</div>
problem im having is when the form is submitted id LIKE it to refresh the cfimport without reloading the rest of the page
is this possible?
below is the code im working with:
<div id="feedback">
<h1>Feedback</h1>
<h2>Help us help you</h2>
<cfparam name="url.step" default="1">
<cfif url.step EQ 1>
<cfform name="contact" action="server_extContact.cfm?step=2" method="post">
First Name:*<br />
<cfinput type=text name="firstName" size=35 required="Yes" message="First Name is Required"><br />
Last Name:*<br />
<cfinput type=text name="lastName" size=35 required="Yes" message="Last Name is Required"><br />
Your Email:<br />
<cfinput type=text name="email" size=35 required="No"><br />
Comments:<br />
<textarea name="comments" rows=5 cols=25></textarea><br />
<input type="submit" value="Send">
<h6>Required fields are marked with a *</h6>
</cfform>
<cfelseif url.step EQ 2>
<cfmail
server="fish.iservetech.com"
from="#form.email#"
to="contact@pittsburgheck.com"
subject="PittsburghECK Email">
<!--- --->Contact from PittsburghECK.com:
<!--- --->First Name: #form.firstName#
<!--- --->Last Name: #form.lastName#
<!--- --->Email: #form.email#
<!--- --->Comments: #form.comments#
</cfmail>
<h1>Email</h1>
<h2>submitted</h2>
<div class="spacer">
<p class="post">
Thanks for the email! We will be contacting you shortly to verify your information.
</p>
</div>
</cfif>
</div>
