Hi All,

I'm currently playing around with BD and looking at aggressively developing
an application in it at the moment and I seem to have hit an issue and would
like some verification. I've already sent mails to newatlanta but I'm
impatient.... :)

Basically I have a straight HTML form with a file to upload and a
multi-select input box on it.

My problem seems to be the way that BD handles the multi-select form data
when the enctype is set to multipart/form-data. Essentially instead of
getting a comma separated list of values from the multi-select, BD is
returning only the last item what should be the list....

Eg without enctype="multipart/form-data"

Form.Parents returns 14,15,16

With enctype="multipart/form-data"

Form.Parents returns just 16.

Obviously with it being a file upload form I need the enctype declaration
but the functionality is for nothing without the multi-select input box too.

Can someone confirm that this problem can be recreated on their installation
of BD 6.1. 

The code below reproduces the problem on my installation.

<html>
        <head>
                <title></title>
        </head>
        <body>
                <cfif IsDefined("Form.Submit")>
                        <cfdump var="#Form#">
                </cfif>
                <h1>Enctype set</h1>
                <form action="thispage.cfm" method="post"
enctype="multipart/form-data">
                        <select name="Parents" size="3" multiple="multiple">
                                <option value="1">one</option>
                                <option value="2">two</option>
                                <option value="3">three</option>
                        </select>
                        <input type="submit" name="submit" value="submit" />
                </form>
                
                <h1>Enctype NOT set</h1>
                <form action="thispage.cfm" method="post">
                        <select name="Parents" size="3" multiple="multiple">
                                <option value="1">one</option>
                                <option value="2">two</option>
                                <option value="3">three</option>
                        </select>                       
                        <input type="submit" name="submit" value="submit" />
                </form>
        </body>
</html>







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196008
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to