[Zope] <SELECT> box value missing from REQUEST namespace

Cotten Blackwell cotten@swdev.com
Wed, 18 Apr 2001 08:34:46 -0700


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>&nbsp;&nbsp;&nbsp;<input type="text"
name="userName" size="24"></td>
  </tr>
  <tr>
   <td align='right'>User Number:</td>
<td>&nbsp;&nbsp;
    <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> &nbsp;&nbsp;          <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>&nbsp;Common</td></tr>
<tr><td align=right>
   <input type="checkbox" name="deptDir:int" value="1"></td>
<td>&nbsp;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