Getting values in CGI

Please help me…

I have 3 frames (from layout) on my web page. When I submit the form NONE of the input fields on any of the forms are returned to my CGI program. Thie input fields not in the DIVs which define the layouts are returned.

What am I doing wrong? I have searced the forum for submit and CGI to no avail

I have been working on this project for a man month and it is due on July 12th. I can hardly start over.

Charlie Elliott
essco@execpc.com

I’ve read the description… It is not clear.

Could you provide the tabbar initialization code. Possibly it’ll help to understand where the form is and how form is submitted.

Here is the code

(it is html code but i cannot send you that, thus the extention xxx)
(well xxx doesn’t work either, so here goes txt)
(txt didn’t work either)
(took the headers off and used cfe)

i am so frustrated… no matter what i put as an extension i get this error
The extension cfe is not allowed.
The upload was rejected because the uploaded file was identified as a possible attack vector

I don’t even know what an attac vector is!

evidently i cannot send you the code…which makes me sol

so i am gonna try to put the code here:

      <title>Employee Update
      </title>

      <!-- ******************************************************************* -->
      <!-- Global Variables                                                    -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- this is needed to tell the essos2 to close the window               -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- common elements needed for all DHTMLX objects                       -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- common elements needed for all layout objects                       -->
      <!-- ******************************************************************* -->

      <link rel="stylesheet" type="text/css" href="dhtmlxLayout/codebase/dhtmlxlayout.css">
      <link rel="stylesheet" type="text/css" href="dhtmlxLayout/codebase/skins/dhtmlxlayout_dhx_skyblue.css">
      <!-- ******************************************************************* -->
      <!-- common elements needed for all tree objects                         -->
      <!-- ******************************************************************* -->

      <link rel="STYLESHEET" type="text/css" href="dhtmlxtree/codebase/dhtmlxtree.css">
      <!-- script  src="dhtmlxtree/codebase/dhtmlxtree_sb.js"></script -->

      <!-- ******************************************************************* -->
      <!-- common elements needed for all tab bar objects                      -->
      <!-- ******************************************************************* -->

      <link rel="stylesheet" type="text/css" href="dhtmlxTabbar/codebase/dhtmlxtabbar.css">
      <!-- ******************************************************************* -->
      <!-- common elements needed for all combo box objects                    -->
      <!-- ******************************************************************* -->

      <link rel="STYLESHEET" type="text/css" href="dhtmlxcombo/codebase/dhtmlxcombo.css">
      <!-- ******************************************************************* -->
      <!-- common elements needed for all calendar objects                     -->
      <!-- ******************************************************************* -->

      <link rel="STYLESHEET" type="text/css" href="dhtmlxCalendar/codebase/skins/dhtmlxcalendar_dhx_blue.css">
      <!-- ******************************************************************* -->
      <!-- button images                                                       -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- once the form is loaded this routine is called to set up the window -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- this routine causes the button animation                            -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- this routine searches a combo box for an entry in an input box      -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- these help the output in the window look nice                       -->
      <!-- ******************************************************************* -->

      <style type="text/css">
           .regfont
           {
           font-size:8pt;
           font-family:"Arial,Sans-serif";
           font-weight:900;
           }
           .smlfont
           {
           font-size:6pt;
           font-family:"Arial,Sans-serif";
           font-weight:900;
           }
           div.ex
           {
           padding:2px;
           border:2px solid gray;
           margin:0px;
           font-size:8pt;
           font-family:"Arial,Sans-serif";
           font-weight:900;
           }
      </style>

      <!-- ******************************************************************* -->
      <!-- check or uncheck all of the grouped checkboxes                      -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- form submission stuff                                               -->
      <!-- ******************************************************************* -->
      <!-- ******************************************************************* -->
      <!-- this is needed to make the pseudo-window work correctly             -->
      <!-- ******************************************************************* -->
      <style type='text/css'>
           html, body {
           width: 100%;
           height: 100%;
           margin: 0px;
           padding: 0px;
           overflow: hidden;
           margin-top: 40px;
           text-align: center;
           font-size: 13px;
           font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
           }

      </style>


 </head>
 <body>
      <FORM NAME="EmpUpd" METHOD="POST" ID="EmpUpd"> 

           <div id="regbutObj2" style="height:100%;width:100%;overflow:auto;background-color:white; vertical-align:top">
                <TABLE id="TableRptObj" height="100%" cellSpacing="0" cellPadding="0" width="99%" border="0">
                     <TR style="height:100%">
                          <TD width="80%" align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </TD>
                          <td width="9%" align="right">
                               <img id="okparms" name="okparms" src="essimg/okparms_0.bmp" alt="Exit this routine and update the employee" title="Exit this routine and update the employee" onclick="ESSSubmit('UpdateDone');" style="cursor: pointer; cursor:hand;" onMouseOver="SwapImage(this,OkParms_Ovr)" onMouseOut="SwapImage(this,OkParms_Off)">
                          </td>
                          <td width="9%" align="right"">
                               <img id="exitparms" name="exitparms" src="essimg/exitparms_0.bmp" alt="Exit this routine, DO NOT update the employee" title="Exit this routine, Do NOt update the employee" onclick="closeWindow();" style="cursor: pointer; cursor:hand;" onMouseOver="SwapImage(this,ExitParms_Ovr)" onMouseOut="SwapImage(this,ExitParms_Off)">
                          </td>
                     </TR>

                </table>
           </div>

           <div id="prtinsbutObj" style="height:100%;width:100%;overflow:auto;background-color:white; display:none;">
                <div style="height:88%; width:96%; overflow:auto; text-align:left;">
                     <p>Now is the time for all good men to come to the aid of their party
                     </p>
                </div>
                <TABLE id="TablePrtInsObj" height="10%" cellSpacing="0" cellPadding="0" width="96%" border="0">
                     <TR style="height:100%">
                          <TD width="89%" align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          </TD>
                          <td width="9%" align="right">
                               <img id="printinst" name="printinst" src="essimg/printinst_0.bmp" alt="Print these instructions" title="Print these Instructions" onclick="ESSSubmit('printInst');" style="cursor: pointer; cursor:hand;" onMouseOver="SwapImage(this,PrintInst_Ovr)" onMouseOut="SwapImage(this,PrintInst_Off)">
                          </td>
                          <TD width="2%">&nbsp;
                          </TD>
                     </TR>
                </table </div>

                <div id="headObj" style="height:100%;width:100%;overflow:auto;background-color:#B8D7FF; display:none;">
                     <input type="hidden" name="ESSVersionA" value="11111111" ID="ESSVersionA">
                     <TABLE id="Table7" height="100%" cellSpacing="0" cellPadding="0" width="99%" border="0">
                          <TR style="height:20%">
                               <TD width="2%">&nbsp;
                               </TD>
                               <td width="94%" align="center">
                                    <b style="color: black">&nbsp;912391&nbsp;-&nbsp;CHRIS CANNON
                                    </b>
                               </td>
                               <TD width="2%">&nbsp;
                               </TD>
                          </TR>
                     </TABLE>
                </div>

                <div id="ESS_Body" style="width:100%; height:100%; overflow: auto; background-color:#CCE2FE; text-align:left; display:none;">
                     <TABLE style="align:left; width:100%; background-color:#CCE2FE">
                          <TR>
                               <TD style="align:left; width:8%;">ID Number
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" size="10" name="ESSX_Employees.EmployeeNumber" value="912391" ID="ESSX_Employees.EmployeeNumber" READONLY>
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">Status
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">

                                    <table>
                                         <TR>
                                              <TD>
                                                   <INPUT type="radio" value="A" name="ESSM_Employees.Status" CHECKED>Active 
                                              </TD>
                                              <td>
                                                   <INPUT type="radio" value="I" name="ESSM_Employees.Status">Inactive 
                                              </TD>
                                              <td>
                                                   <INPUT type="radio" value="W" name="ESSM_Employees.Status">Withdrawn 
                                              </TD>
                                              <td>
                                                   <INPUT type="radio" value="D" name="ESSM_Employees.Status">Deleted
                                              </TD>
                                         </TR>
                                    </table>
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">Last Name
                               </TD>

                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" style="width:98%;" maxlength="60" name="ESSM_Employees.LastName" value="Cannon" ID="ESSM_Employees.LastName">
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:8%;">First Name
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" style="width:98%;" maxlength="50" name="ESSM_Employees.FirstName" value="Chris" ID="ESSM_Employees.FirstName">
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">Address 1
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" style="width:98%;" maxlength="255" name="ESSM_Employees.Address1" value="765 - 11th Ave. N.E." ID="ESSM_Employees.Address1">
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">Address 2
                               </TD>

                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" style="width:98%;" maxlength="255" name="ESSM_Employees.Address2" value="                         " ID="ESSM_Employees.Address2">
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">City
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <TD style="align:left; width:37%;">
                                    <INPUT type="text" style="width:98%;" maxlength="255" name="ESSM_Employees.City" value="Seattle" ID="ESSM_Employees.City">
                               </TD>
                          </TR>
                          <TR>
                               <TD style="align:left; width:8%;">State
                               </TD>
                               <TD style="align:left; width:2%;">&nbsp;
                               </TD>
                               <td style="align:left; width:37%;">
                                    <select id="Select1" size="1" name="ESSM_Employees.State">
                                         <option value="AL">Alabama
                                         </option>

                                         <option value="AK">Alaska
                                         </option>
                                         <option value="AZ">Arizona
                                         </option>
                                         <option value="AR">Arkansas
                                         </option>
                                         <option value="CA">California
                                         </option>
                                         <option value="CO">Colorado
                                         </option>
                                         <option value="CT">Connecticut
                                         </option>
                                         <option value="DE">Delaware
                                         </option>
                                         <option value="FL">Florida
                                         </option>
                                         <option value="GA">Georgia
                                         </option>

                                         <option value="HI">Hawaii
                                         </option>
                                         <option value="ID">Idaho
                                         </option>
                                         <option value="IL">Illinois
                                         </option>
                                         <option value="IN">Indiana
                                         </option>
                                         <option value="IA">Iowa
                                         </option>
                                         <option value="KS">Kansas
                                         </option>
                                         <option value="KY">Kentucky
                                         </option>
                                         <option value="LA">Louisiana
                                         </option>
                                         <option value="ME">Maine
                                         </option>

                                         <option value="MD">Maryland
                                         </option>
                                         <option value="MA">Massachusetts
                                         </option>
                                         <option value="MI">Michigan
                                         </option>
                                         <option value="MN">Minnesota
                                         </option>
                                         <option value="MS">Mississippi
                                         </option>
                                         <option value="MO">Missouri
                                         </option>
                                         <option value="MT">Montana
                                         </option>
                                         <option value="NE">Nebraska
                                         </option>
                                         <option value="NV">Nevada
                                         </option>

                                         <option value="NH">New Hampshire
                                         </option>
                                         <option value="NJ">New Jersey
                                         </option>
                                         <option value="NM">New Mexico
                                         </option>
                                         <option value="NY">New York
                                         </option>
                                         <option value="NC">North Carolina
                                         </option>
                                         <option value="ND">North Dakota
                                         </option>
                                         <option value="OH">Ohio
                                         </option>
                                         <option value="OK">Oklahoma
                                         </option>
                                         <option value="OR">Oregon
                                         </option>

                                         <option value="PA">Pennsylvania
                                         </option>
                                         <option value="PR">Puerto Rico
                                         </option>
                                         <option value="RI">Rhode Island
                                         </option>
                                         <option value="SC">South Carolina
                                         </option>
                                         <option value="SD">South Dakota
                                         </option>
                                         <option value="TN">Tennessee
                                         </option>
                                         <option value="TX">Texas
                                         </option>
                                         <option value="VI">US Virgin Islands
                                         </option>
                                         <option value="UT">Utah
                                         </option>

                                         <option value="VT">Vermont
                                         </option>
                                         <option value="VA">Virginia
                                         </option>
                                         <option value="WA" SELECTED>Washington
                                         </option>
                                         <option value="DC">Washington, D.C.
                                         </option>
                                         <option value="WV">West Virginia
                                         </option>
                                         <option value="WI">Wisconsin
                                         </option>
                                         <option value="WY">Wyoming
                                         </option>
                                         <option value="XX">Not In US
                                         </option>
                                    </select>

                               </td>
                          </TR>

                     </TABLE>
                     <br>
                </div>


                <div id="EmployeeTable" style="width:100%;">
                     <table width="98%" height="98%" align="left">
                          <tr>
                               <td align="left" class="regfont" width="100%" colspan=3>type an employee name below
                               </td>
                          </tr>
                          <tr>
                               <td align="left" width="100%" colspan=3>
                                    <input type="text" style="width:100%;" id="aCourseName" onkeyup="searchSel('aCourseName','EmployeeName','TEXT2')">

                               </td>
                          </tr>
                          <tr>
                               <td align="left" width="100%" colspan="3">
                                    <select name="EmployeeName" id="EmployeeName" style="width:100%';" size="17" onclick="searchHit('EmployeeName')">
                                         <option style="font-size:11px;" value="1">Aalling, Lene 
                                         </option>
                                         <option style="font-size:11px;" value="2">Barber, David 
                                         </option>
                                         <option style="font-size:11px;" value="5">Cannon, Chris 
                                         </option>
                                         <option style="font-size:11px;" value="3">Cannon, Frank 
                                         </option>
                                         <option style="font-size:11px;" value="4">Philips, Carol 
                                         </option>
                                    </select>
                               </td>

                          </tr>
                          <tr>
                               <td align="left" width="45%" colspan="2">
                                    <img id="addemp" name="addemp" src="essimg/AddEmployee_0.png" alt="Add an employee" title="Add an employee" onclick="ESSSubmit('EmpAdd');" style="cursor: pointer; cursor:hand;" onMouseOver="SwapImage(this,AddEmployee_Ovr)" onMouseOut="SwapImage(this,AddEmployee_Off)">
                               </td>
                               <td align="left" width="45%" colspan="2">
                                    <img id="getemp" name="getemp" src="essimg/EmployeeGet_2.png" alt="Get selected employee" title="Get an employee" onclick="ESSSubmitMaybe('EmployeeName','EmpGet');" style="cursor: pointer; cursor:hand;" onMouseOver="SwapImage(this,EmployeeGet_Ovr)" onMouseOut="SwapImage(this,EmployeeGet_Off)">
                               </td>
                               <td align="left" width="10%" colspan="2">&nbsp;&nbsp;
                               </td>
                          </tr>
                     </table>
                </div>

                <div style="display: none;">

                     <input type="hidden" name="ESSVersion" value="1" ID="ESSVersion">

                     <input type="hidden" name="ESSCameFrom" value="EmpUpd" ID="ESSCameFrom">
                     <input type="hidden" name="ESSGoTo" value="WholePage" ID="ESSGoTo">

                     <input type="hidden" name="Xinsrunname" value="201!EMPUPD.EXE" ID="Xinsrunname">
                     <input type="hidden" name="Xinsrunnumber" value="11" ID="Xinsrunnumber">
                     <input type="hidden" name="Xinswinname" value="winHelpBox2" ID="Xinswinname">
                     <input type="hidden" name="Xinswho" value="2" ID="Xinswho">

                     <input type="hidden" name="ESSGetEmployee" value="0" ID="ESSGetEmployee">
                     <input type="hidden" name="ESSNextEmployee" value="" ID="ESSNextEmployee">
                     <input type="hidden" name="ESSCurrentEmployee" value="4" ID="ESSCurrentEmployee">
                     <input type="hidden" name="ESSPreviousEmployee" value="" ID="ESSPreviousEmployee">

                     <input class="essalways" type="hidden" name="ESSK9When" id="ESSk9When" value="6/30/2010 10:26:05 AM">

                     <input class="essalways" type="hidden" name="ESSthread" value="000000000000000000000000000000000000000000000000000000000544751484750484948324948585054584853326577" ID="ESSthread">

                </div>
                <!-- h5>© 2009 Elliott Software Systems, Appleton Wi 54941</h5 -->
           </form>
      </body>
 </html>

charlie

In your example layout is attached to the document body. The form isn’t attached to any layout cell.
The input fields must be inside form. So, you need to attach the form with the necessary fields to one of layout cells.

alexandra-
thank you

if i am understanding you correctly this line:

dhxLayout = new dhtmlXLayoutObject(document.body, “4U”);

should be this?

dhxLayout = new dhtmlXLayoutObject(document.form, “4U”);

charlie

hi,

dhxLayout = new dhtmlXLayoutObject(document.form, “4U”);

you need to attach form into the necessary layout cell. For example:

dhxLayout.cells(“c”).attachObject(“EmpUpd”); /EmpUpd is form id/