Hello,
First off the <cfform> tag does not require a name unless you plan on
using mullitple forms. You can take that out and add a hidden <cfinput>
tag named "tutor_request". Also using required="no" in the cfinput tags
is a little redundant because the default is for these form types is
already no. You can try something like this:
Hopefully this works for you. :)
<div id="Layer4">
<cfif isDefined("form.tutor_request") AND form.tutor_request EQ 1>
<cfmail
from= #form.tutor_request#
to="emailaddress.com"
subject="New Tutoring Request"
server="localhost">
First Name : #form.FirstName#
Last Name : #form.LastName#
Address : #form.Address#
City/Town : #form.CityTown#
State : #form.State#
Postcode : #form.Postcode#
Phone : #form.Phone#
Email : #form.Email#
Mobile : #form.Mobile#
Prospective Student Name : #form.StudentName#
Age : #form.Age#
Tutoring Subject/Area : #form.TutoringSubject#
How did you hear about us : #form.HowFind#
If other : #form.Other#
If referral : #form.Referral#
</cfmail>
<cflocation url="
http://www.achievetuition/request_confirm.html"> </cfif>
<cfform height="620" width="600" format="flash" skin="haloblue">
<cfformgroup type="panel" label=" Tutoring Request Form"
style="color:##0066FF; fontSize:12; text-align:left;">
<cfformgroup type="Horizontal" label="Name">
<cfinput type="Text" name="FirstName" width="100"
required="yes">
<cfinput type="Text" name="LastName" width="100"
required="yes">
</cfformgroup>
<cfinput type="Text" name="Address" label="Address:"
width="210" required="yes">
<cfinput type="Text" name="CityTown" label="City/Town:"
width="210" required="yes">
<cfformgroup type="HBox">
<cfformgroup type="VBox">
<cfselect name="State" label="State:"
width="100">
<option>Select</option>
<option>QLD</option>
<option>NSW</option>
<option>VIC</option>
<option>TAS</option>
<option>SA</option>
<option>WA</option>
<option>NT</option>
<option>ACT</option>
</cfselect>
</cfformgroup>
</cfformgroup>
<cfinput type="Text" name="Postcode" Label="Postcode:"
width="100" required="yes">
<cfinput type="text" name="Phone" label="Phone:"
width="210" validate="noblanks,telephone">
<cfinput type="text" name="Mobile" label="Mobile:"
width="210" validate="telephone">
<cfinput type="text" name="Email" Label="Email:"
width="210" required>
<cfinput type="Text" name="StudentName"
Label="Prospective Student Name:" width="210">
<cfinput type="Text" name="Age" Label="Age:"
width="100">
<cftextarea name="TutoringSubjects"
label="Tutoring Subject(s)/Areas:" rows="6" />
<cfformgroup type="HBox">
<cfformgroup type="VBox">
<cfselect name="HowHear" label="How did you
find us:" width="210">
<option>Select</option>
<option>Google</option>
<option>Yahoo</option>
<option>MSN</option>
<option>Other Search Engine</option>
<option>Referral</option>
<option>Website</option>
<option>Newspaper</option>
<option>Flyer</option>
<option>Email</option>
<option>Other</option>
</cfselect>
</cfformgroup>
</cfformgroup>
<cfinput type="Text" name="Other" Label="If
other please specify:" width="210">
<cfinput type="Text" name="Referral" Label="If
referral by whom:" width="210">
<cfformgroup type="horizontal" style="horizontalAlign:left">
<cfinput type="hidden" name="tutor_request" value="1">
<cfinput type="Submit" name="submitBtn" value="Submit">
</cfformgroup>
</cfformgroup>
</cfform>
</div>
[quoted text, click to view] knoxdigit wrote:
> Hi there,
>
> I have just started using coldfusion and flash forms for that matter. Just
> wondering if someone can help me get my form working. I'm not sure if it will
> even work using the current format or whether I need to use remoting, but here
> it is anyway...
> With <cfform name="form.tutor_request" included I don't receive an error but
> the form is not displayed. With "name" ommitted the form is displayed but
> won't send to my email address.
>
> Please let me know what I am doing wrong.
>
> much appreciated.
>
> Jon Viney
>
http://www.achievetuition.com.au >
> <div id="Layer4">
> <cfif isDefined("form.tutor_request")>
> <cfmail
> from= #form.tutor_request#
> to="emailaddress.com"
> subject="New Tutoring Request"
> server="localhost">
> First Name : #form.FirstName#
> Last Name : #form.LastName#
> Address : #form.Address#
> City/Town : #form.CityTown#
> State : #form.State#
> Postcode : #form.Postcode#
> Phone : #form.Phone#
> Email : #form.Email#
> Mobile : #form.Mobile#
> Prospective Student Name : #form.StudentName#
> Age : #form.Age#
> Tutoring Subject/Area : #form.TutoringSubject#
> How did you hear about us : #form.HowFind#
> If other : #form.Other#
> If referral : #form.Referral#
> </cfmail>
> <cflocation url="
http://www.achievetuition/request_confirm.html"> > </cfif>
> <cfform name="form.tutor_request" height="620" width="600" format="flash"
> skin="haloblue">
> <cfformgroup type="panel" label="
> Tutoring Request Form" style="color:##0066FF; fontSize:12; text-align:
> left;">
>
> <cfformgroup type="Horizontal" label="Name">
> <cfinput type="Text" name="FirstName" width="100" required>
> <cfinput type="Text" name="LastName" width="100" required>
> </cfformgroup>
> <cfinput type="Text" name="Address" label="Address:" width="210"
> required>
> <cfinput type="Text" name="CityTown" label="City/Town:"
> width="210" required>
> <cfformgroup type="HBox">
> <cfformgroup type="VBox">
> <cfselect name="State" label=" State:"
> width="100">
> <option>Select</option>
> <option>QLD</option>
> <option>NSW</option>
> <option>VIC</option>
> <option>TAS</option>
> <option>SA</option>
> <option>WA</option>
> <option>NT</option>
> <option>ACT</option>