<SELECT> box value missing from REQUEST namespace
Folks: Looked hard and long at the archives and saw a few remotely relatedly threads, but nothing this simple and this befudding. For some dark reason beyond my newbie ken, a previously functioning form and form handler combo is now kaputt. What seems to be happening (the bizarre part) is that the value of a form select box is not appearing in the REQUEST namespace. As soon as I click the submit button, the form handler hits a line with <dtml-var REQUEST>, and you can see that neither of the select variables, selectDepartment or selectHandset, is present in REQUEST: form initUserDir 'Set Up Contacts for This User' deptDir 1 fleetID 8 commonDir 1 userName 'Count Zero' ------ Here's the form in question: <form name="addRecord" action="" method=post> <table width="100%" bgcolor="white"> <tr><td align=center> <table width="75%" bgcolor="#000000" cellspacing=0 cellpadding=1> <tr><td> <table width="100%" bgcolor="white" cellspacing=0 cellpadding=0> <tr> <td align='right'> User Name:</td> <td> <input type="text" name="userName" size="24"></td> </tr> <tr> <td align='right'>User Number:</td> <td> <dtml-comment>Need to fight about this UI issue later... <input type="text" name="phone" size="24"><br><br> </dtml-comment> <select name="selectHandset:int" size="1"> <dtml-in expr="selAvailableHandsetsAll( fleetID = fleetID, handsetID = 0 )"> <option value="&dtml-id;"> <dtml-var phone> </option> </dtml-in> </select></td></tr> <tr><td align='right'> Department:</td> <td> <select name="selectDepartment:int" size="1"> <dtml-in expr="selDepartments( fleetID = fleetID )"> <option value="&dtml-id;"> <dtml-var name="name" capitalize spacify> :<dtml-var id> </option> </dtml-in> </select></td></tr> <tr><td colspan=2 align=center> Build User Directory from:</td></tr> <tr><td align=right> <input type="checkbox" name="commonDir:int" value="1"></td> <td> Common</td></tr> <tr><td align=right> <input type="checkbox" name="deptDir:int" value="1"></td> <td> Department</td></tr> </table> <input type="hidden" name="fleetID:int" value="&dtml-fleetID;"> <dtml-var name="addRecordActions"> </td></tr> </table> </td></tr> </table> </form> ------ Any ideas how this might happen, or how to start digging at the solution? Thanks in advance for any help with this! Cotten Blackwell
Cotten Blackwell wrote:
Folks:
Looked hard and long at the archives and saw a few remotely relatedly threads, but nothing this simple and this befudding.
For some dark reason beyond my newbie ken, a previously functioning form and form handler combo is now kaputt. What seems to be happening (the bizarre part) is that the value of a form select box is not appearing in the REQUEST namespace.
As soon as I click the submit button, the form handler hits a line with <dtml-var REQUEST>, and you can see that neither of the select variables, selectDepartment or selectHandset, is present in REQUEST:
[snip]
------
Any ideas how this might happen, or how to start digging at the solution?
Thanks in advance for any help with this!
Cotten Blackwell
Try changing the form method to get and see if the select values make it onto the URL. -- | Casey Duncan | Kaivo, Inc. | cduncan@kaivo.com `------------------>
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
For some dark reason beyond my newbie ken, a previously functioning form and form handler combo is now kaputt. What seems to be happening (the bizarre part) is that the value of a form select box is not appearing in the REQUEST namespace.
Try and check if you are using a method="post" in your form. If you are using af method="get" instead, or no method at all, and the size of your forms content exceeds around 1KB you get very irrational behaviour from your browser. This could easily cause your problem. Regards Max M Max M. W. Rasmussen, Denmark. New Media Director private: maxmcorp@worldonline.dk work: maxm@normik.dk ----------------------------------------------------- Shipping software is an unnatural act
Max M wrote
Try and check if you are using a method="post" in your form. If you are using af method="get" instead, or no method at all, and the size of your forms content exceeds around 1KB you get very irrational behaviour from your browser.
On the other hand, Netscape 4.73 and its cousins on Windows don't always work with a POST - they don't actually send the form to Zope, it seems, until you click on the window frame to (re) focus it. At least, I see it when I am using frames or popup windows. I had to change to GETs to make it work. Cheers, Tom P
participants (4)
-
Casey Duncan -
Cotten Blackwell -
Max M -
Thomas B. Passin