[thelist] Weird CF double-data issue

Aaron Johnson evolt at cephas.net
Thu Feb 8 23:04:31 CST 2001


Hi Rob,

The only way I can think of that this might happen would be if you had
hidden form fields in your initial form, which you conditionally passed to
the action page... that's what a comma delimited value pair says to me...
At least a temporary fix might be to wrap all your numeric values in the CF
val() function and wrap your query within a <cftry> so that you can catch
those errors... val() will return a number if the form value is numeric and
will return 0 otherwise...

HTH

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: aaron.johnson			: <wrk>617.461.3721
: web.applications.developer	: <fax>703.832.6221
: ajohnson at cephas.net		: <icq>66172567
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rob Keniger
Sent: Thursday, February 08, 2001 10:23 PM
To: thelist at lists.evolt.org
Subject: [thelist] Weird CF double-data issue


Hi all,

I have a ColdFusion application which is a back-end management system for a
client's site. It has several templates that allow the client to add a
record by filling in various fields and also (optionally) uploading an
image. The form enctype is set to multipart/form-data for the upload top
work.

The form posts to a second CF template that displays the results for the
user to confirm them.

The problem I am having is that on an intermittent basis, the form POSTs all
the data in the form twice, so on the confirm page instead of having "Name:
John Smith" I get "Name: John Smith, John Smith" which causes the insert
queries to fail with numeric data and is just plain wrong.

This is happening on two of my client's systems (Win98, IE5.5) but I can't
duplicate on my Win2000/IE5.5 or Mac IE5 systems.

Does anyone have an idea why this might be happening? It is driving me nuts!

--

Rob Keniger

big bang solutions

<mailto:rob at bigbang.net.au>



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !






More information about the thelist mailing list