The problem is that these errors are random in nature, i.e. if a script is executed 200 times a day, it fails on one or two occasions. One of the frequently used scripts which are giving this error uses a client-side form submit.
The form on this script has a text-area field, with a size limit of 2000 characters, and a few other text-boxes and a couple of hidden fields. The form has multiple submit buttons, and on pressing any of the submit button, a JavaScript function is called (with different parameters for different buttons). This is basically so that different submit buttons cause the form data to be submitted to different pages. The javascript function then does the client-side submit as below : document.myForm.action="my_nextpage.cfm" document.myForm.submit(); The problem is that on some random occasions, one of the text fields / hidden fields is not being passed to the script my_nextpage.cfm. We are already using isdefined() to check for the existence of this form data. But is there anything we can do to ensure that form data NEVER gets lost ? By and large, I find that these missing form data /url variables occur in the case : 1. Larger (ie no of lines of code) and more frequently used scripts. 2. When the contents of large textarea fields are to be passed using <form method="post"> 3. When the form submits to the same page, does the processing and uses cflocation to go the next page OR where the form is submitted on the client side through javascript. Do you think that we could solve these problems by : a) Inserting the contents of textareas into temp tables and retrieving them on subsequent pages through a query rather than passing them as form variables ? b) Redesigning pages to prevent the use of client-side form submits and minimise use of cflocations ? Would really appreciate if anyone can advise us on this. Vishal. At 20:59 10/4/2002 -0700, you wrote: >You don't have a cflocation in there someplace do you? Perhaps in your >action page? If not that, you should try doing a ><cfoutput>#form.fieldnames#</cfoutput> in your action page (at the top), >just to make sure you are in fact getting the >fieldnames. > >----- Original Message ----- >From: "Vishal Narayan" <[EMAIL PROTECTED]> >To: "CF-Talk" <[EMAIL PROTECTED]> >Sent: Wednesday, April 10, 2002 8:42 PM >Subject: CF - Problem with missing Form Data > > > > We are using CF4.5 with IIS5 on W2K server and SQL 2000 DB for our website. > > I have a big problem with users getting random errors about missing > > parameters - either form data or url parameters. The required form fields > > are validated for using javascript, which ensures that the problem is not > > caused by necessary fields being left unfilled. A sample of such an error > > is shown below : > > > > > >----------------------------------------------------------------------------------------------------------- > > 203.199.247.72 Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) > > An error occurred while evaluating the expression: > > #form.job_id# > > Error near line 57, column 13. > > > > Error resolving parameter FORM.JOB_ID > > The specified form field cannot be found. This problem is very likely due > > to the fact that you have misspelled the form field name. > > The error occurred while processing an element with a general identifier of > > (#form.job_id#), occupying document position (57:12) to (57:24) in the > > template file D:\Inetpub\wwwroot\mysite\myfilename.cfm. > > > >-------------------------------------------------------------------------------------------------------------------- > > > > The page doing the referring is validated, and the error log shows that > > they are in fact being referred from the correct template. I know that the > > template doing the referring contains the specified form field. Is the > > browser somehow losing data? Is CF or IIS to blame ? Would like to know if > > anyone else has faced this problem, and what I can do to handle it. > > > > Thanks in anticipation. > > > > Vishal. > > > > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.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

