I wouldn't suggest posting the form variables back through - can get pretty
messy.  I'd suggest trying to encapsulate your code.  i.e. have one page
that is both the form and the action page, that way if there is an error you
can trap it and drop down through the code to redisplay the form with the
error message very basically:

<cfif ISDefined("firm.submit")>
<!--- Check for errors here --->
  <cfif error>
        <cfset errmessage = "Error Message">
  <cfelse>
        <do the processing here>
  </cfif>
</cfif>

<form action=thispage.cfm method="post">
<input type="type" name="fieldname" <cfif
ISDefined("form.submit")>value="form.fieldname"</cfif>>
etc...
</form>

even better - use one of the custom tags that comes as part of fusebox
(can't remember the name) then you don't have to ponse around with this code

-----Original Message-----
From: Adrian Lynch [mailto:[EMAIL PROTECTED]]
Sent: 19 April 2002 17:54
To: CF-Talk
Subject: RE: Form fields clearing (Macs only) after clicking Back


Send any values the user has submited back to the form page, by the look of
your form, you don't want to be doing this as url variables. Sessions
maybe?? Or build it in flash MX :O) 

Or as a second thought, have the error page contain a form with the submit
button as the Back button, send back all the values they have given and hope
they don't hit the browser back button!

Oi Critz, why the Oi's all the time, ya sound like ya shoutin' :OP

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 19 April 2002 17:52
To: CF-Talk
Subject: Form fields clearing (Macs only) after clicking Back



I have created some input forms.  Certain fields are 
mandatory.  After user clicks Submit, I check to see
if they have been filled in.  If they haven't, I display 
an error message on a new page and instruct the user to
click the Back button and correct the error.  This all
works fine.

Unfortunately, when Macintosh users click the Back button
all of the information on the form is gone.  This does
not happen to PC users.  There is no meta refresh code
in the form page that would cause the page to reload.

The code is here:
http://www.HighCaliber.com/ifp
 Click "No Borders Film Application"
 Click "I agree"
 Fill in one item (Project Title) on the form
 Click Submit
 Error message is displayed.
 Click Back
 See if the Project Title you entered is still there

Any suggestions on how to fix this would be greatly
appreciated.

Thanks

Joe Tartaglia
High Caliber Systems
212-684-5553
http://www.HighCaliber.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to