Overtly, everything looks correct to me... but a couple of  
suggestions...

- I'm not sure if qForms still works with Farcry or not anymore.  
Instead, you might want to consider building your form with cfform  
and using the built in validation.
- you might want to consider making a custom config for the items you  
are adding projectname/system/dmConfig/ this way you could call these  
items through the application.config scope instead of adding them as  
you have done. This also makes them easy to update through the Farcry  
admin.

- Finally, where are you submitting the form to? (action). Since the  
actual page actually processes the form, you might want the action to  
be #cgi.script_name#?#cgi.query_string#

This would 'self-submit'.

good luck!
elaine


On Apr 24, 2008, at 3:42 PM, Selfprodigy wrote:

>
> Okay i had this working earlier today. I started to make updates, and
> a few edits but, now it's not working right. In theory you fill out
> your info it's sent to an email address, and it gives the thank you
> for submitting message. Then there is supposed to be a link that takes
> you back to the home page. This was all working fine until I added
> more fields. Here is my includedobj code _contact.cfm
>
> <cfoutput>
> <!----Default Values ---->
> <cfset showForm=1>
> <cfparam name="form.firstName" default="">
> <cfparam name="form.lastName" default="">
> <cfparam name="form.emailAddress" default="">
> <cfparam name="form.companyName" default="">
> <cfparam name="form.phoneNumber" default="">
> <cfparam name="form.address" default="">
> <cfparam name="form.apt" default="">
> <cfparam name="form.city" default="">
> <cfparam name="form.state" default="">
> <cfparam name="form.zipCode" default="">
> <cfparam name="form.comments" default="">
> <cfset error="">
>
> <!----check if form has been submitted--->
> <cfif isdefined("form.submit")>
>     <!---form has been submitted so we don't need to show the form--->
>       <cfset showform=0>
>       <!----Send Email---->
>       <cfmail to="#application.config.contact.contactEmail#"
> from="#form.emailAddress#" subject="Website Contact Form">
> A message has been submitted from the website:
>
> First Name:#form.firstName#
> Last Name:#form.lastName#
> Email:#form.emailAddress#
> Company Name:#form.companyName#
> Phone Number:#form.phoneNumber#
> Address:#form.address#
> Apt:#form.apt#
> City:#form.city#
> State:#form.state#
> Zip Code:#zipCode#
> Comments:#form.message#
> </cfmail>
>
> <!---Display thank You Message--->
> <p>#application.config.contact.thankyou#</p>
> <p><a href="#application.url.webroot#">Return to home page/a></p>
> </cfif>
>
> <cfif showForm>
>     <!----display the form---->
>       <form action="#application.url.conjurer#?
> objectid=#application.navid.contact#" method="post" name="contact">
>     <table border="0" cellpadding="3" cellspacing="3">
>             <tr>
>             <td colspan="2" align="left">To request information about
> management consulting assistance for your business, please include
> your business name and location. </td>
>             </tr>
>             <tr><td colspan="2">&nbsp;</td>
>             </tr>
>             <tr>
>             <td align="left">First Name</td>
>             <td align="left"><input type="text" name="firstName"
> value="#form.firstName#"/>
>             </td>
>             </tr>
>            <tr>
>             <td align="left">Last Name</td>
>             <td align="left"><input type="text" name="lastName"
> value="#form.lastName#"/>
>             </td>
>             </tr>
>             <tr>
>             <td align="left">Email</td>
>             <td align="left"><input type="text" name="emailAddress"
> value="#form.emailAddress#"/>
>             </td>
>             </tr>
>           <tr>
>             <td align="left">Company Name</td>
>             <td align="left"><input type="text" name="companyName"
> value="#form.companyName#"/>
>             </td>
>             </tr>
>           <tr>
>             <td align="left">Phone Number</td>
>             <td align="left"><input type="text" name="phoneNumber"
> value="#form.phoneNumber#"/>
>             </td>
>             </tr>
>            <tr>
>             <td align="left">Address</td>
>             <td align="left"><input type="text" name="Address"
> value="#form.address#"/>
>             </td>
>             </tr>
>            <tr>
>             <td align="left">Apt</td>
>             <td align="left"><input type="text" name="Apt"
> value="#form.apt#"/>
>             </td>
>             </tr>
>            <tr>
>             <td align="left">City</td>
>             <td align="left"><input type="text" name="city"
> value="#form.city#"/>
>             </td>
>             </tr>
>  <tr>
>             <td align="left">State</td>
>             <td align="left"><input type="text" name="State"
> value="#form.state#"/>
>             </td>
>             </tr>
>            <tr>
>             <td align="left">Zip Code</td>
>             <td align="left"><input type="text" name="zipCode"
> value="#form.zipCode#"/>
>             </td>
>             </tr>
>             <tr>
>             <td align="left" valign="top">Comments</td>
>             <td align="left"><textarea name="message" rows="10"
> cols="35">#form.comments#</textarea></td></tr>
>             <tr>
>             <td>&nbsp;</td>
>             <td align="left"><input type="submit" name="submit"
> value="Send Message" class="submit"/></td></tr></table>
>
> <!---Form Validation--->
> <SCRIPT LANGUAGE="Javascript">
> <!--//
> objForm = new qForm("contact");
> objForm.firstName.validateNotNull("Please enter your name");
> objForm.emailAddress.validateNotNull("Please enter an email address");
> objForm.emailAddress.validateEmail("Please Enter A Valid email
> address");
> objForm.comments.validateNotNull("Please Enter a message");
> //-->
> </script>
> </form></cfif></cfoutput>
>
>
>
> Here is my custom type code
>
> contact.cfm.
>
> <cfset stConfig=structNew()>
> <cfset stConfig.contactEmail="[EMAIL PROTECTED]">
> <cfset stConfig.thankyou="Thank you for taking the time to contact us.
> We will get back to you shortly">
>
> The only thing i can figure is that i moved the include page to a
> different navigation mode but i set it up the same way...
>
> If you see anything that i'm missing please please please let me know.
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to