× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Shane, perhaps you missed my earlier message. So, I've copied it again below. Netting it out:

        1. your are trying to use the GET request method with too much data and
           the browser is not sending the request to the server.
        2. ZhbGetInput, ZhbGetVar, etc., work exactly the same way for GET
           or POST. So, use POST and stop worrying about GET.
        3. Don't use the old CGIDEV2 subprocedures GetInput, CGIVarVal, etc.
           The Zhb... subprocedures are the ones to use.

Copied from earlier message:
---------------------------

ZhbGetInput supports both GET and POST request methods.

I suspect that when you use GET your browser is failing with GET because the amount of data you are attempting to send exceeds the browser's maximum QUERY_STRING size. POST has no such limits.

I tested this suspicion with a test CGI program that sends a huge form using the POST request method and it works fine. When I changed the request method to GET, neither Netscape nor Internet Explorer would send the form when the submit button was pressed.

There really is no benefit to using GET. On the downside, GET more clearly exposes your hidden fields to the user.

So, either use POST or reduce the amount of data sent with the form.



Mel Rothman, CGIDEV2 Author
Mel Rothman, Inc.


Shane_Cessna@xxxxxxx wrote:
hey all,

I'm still not finding what i'm doing wrong here...If anyone can help, I'd more than appreciate it...here's a quick refresher...if my method = "get", my submit button does nothing (doesn't call my cgi and error out or anything)...however, if i change it to method = "post", it calls my cgi program...now, since i'm trying to get the method = "get" to work, my called cgi program uses the zhb procedures to process the data...however, i wouldn't be opposed to using method = "post" if it works and i knew which procedures to use to replace the zhb procedures...here's my html source...

<html>
<head>
<title>Standard Parts - Database</title>
<script language="javascript">
function OpenPopup(){
var nW = window.open("http://nal820.flora.nal.com/cgihtml/popup.htm";, "PopupHwnd", "status=no,resizable=no,scrollbars=no,width=400,height=250,top=250,left=400");
nW.focus();
nW = null;
}


function validate(fieldvalue, fieldname, fieldtype) {
var fvalue = fieldvalue;
var fname = fieldname;
var ftype = fieldtype;
if (ftype == "Num 155") {
if (!IsNumeric(fvalue)) {
alert('Please enter only numbers or decimal points in ' + fieldname + '.');
return false;
}
}
if (ftype == "Num 10") {
if (!IsInteger(fvalue)) {
alert('Please enter only numbers in ' + fieldname + '.');
return false;
}
}
if (ftype == "Y/N") {
if (fvalue != 'Y' && fvalue != 'N') {
alert('Please enter only Y or N in ' + fieldname + '.');
return false;
}
}
}


function IsNumeric(sText) {
        var ValidChars = "0123456789.";
        var IsNumber = true;
        var Char;

        for (i = 0; i < sText.length && IsNumber == true; i++) {
                Char = sText.charAt(i);
                if (ValidChars.indexOf(Char) == -1) {
                        IsNumber = false;
                }
        }
        return IsNumber;
}

function IsInteger(sText) {
        var ValidChars = "0123456789";
        var IsNumber = true;
        var Char;

for (i = 0; i < sText.length && IsNumber == true; i++) {
Char = sText.charAt(i);
if (ValidChars.indexOf(Char) == -1) {
IsNumber = false;
}
}
return IsNumber;
}
</script>
</head>
<body>
<center><img src="/pics/nallogo.jpg" alt="North American Lighting, Inc."><br>
Standard Parts - Database</center><br>
<br>
<button onclick="javascript: alert('Cost Information\n\nFlora\nCurrent Cost: \nFrozen Standard Cost: \nCurrent Standard Cost: \n\nSalem\nCurrent Cost: $1.65\nFrozen Standard Cost: $1.45\nCurrent Standard Cost: $1.45\n\nParis\nCurrent Cost: \nFrozen Standard Cost: \nCurrent Standard Cost: ')">View Cost</button>&nbsp;&nbsp;
<button onclick="OpenPopup();">Rate Part</button><br>
<br>
<form name="db3" action="/cgi-bin/spdbsavec">
<input type="hidden" name="purrate" value="A">
<input type="hidden" name="mfgengrate" value="">
<input type="hidden" name="prengrate" value="">
<input type="hidden" name="ddrate" value="">
<input type="hidden" name="tdrate" value="">
<input type="hidden" name="sqerate" value="">
Mode: <font color="red">Modify</font><input type="hidden" name="waction" value="Modify"><br>
NAL Part Number: 930 226-00<input type="hidden" name="wpart" value="930 226-00"><br>
Commodity Code: MC<input type="hidden" name="wcommcd" value="MC"><br>
Description: MLDG CMPD, PC, RED (LS2-6162)<input type="hidden" name="wdesc" value="MLDG CMPD, PC, RED (LS2-6162)"><br>
Vendor: G E POLYMERLAND<input type="hidden" name="wvendor" value="G E POLYMERLAND"><br>
Preferred Vendor: <input type="text" name="wpref" size="1" maxlength="1" value="N"><br>
Vendor Part Number: LEXAN/LS-6162<input type="hidden" name="vpart" value="LEXAN/LS-6162"><br>
Unit of Measurement: LB<input type="hidden" name="uom" value="LB"><br>
Commodity Type: <select name="wctype">
<option value=" "> </option>


<option value="AAS">AAS -</option>

<option value="ABS">ABS -</option>

<option value="AES">AES -</option>

<option value="ASA">ASA -</option>

<option value="ASM">ASM -</option>

<option value="BMC">BMC -</option>

<option value="HH PC">HH PC -</option>

<option value="PA">PA -</option>

<option value="PAR">PAR -</option>

<option value="PBT">PBT -</option>

<option value="PBT-PC">PBT-PC -</option>

<option value="PBT-PEG">PBT-PEG -</option>

<option value="PC" SELECTED>PC -</option>

<option value="PC-ABS">PC-ABS -</option>

<option value="PC-ASA">PC-ASA -</option>

<option value="PC-PBT">PC-PBT -</option>

<option value="PEI">PEI -</option>

<option value="PEI-PCE">PEI-PCE -</option>

<option value="PET">PET -</option>

<option value="PET-PBT">PET-PBT -</option>

<option value="PMMA">PMMA -</option>

<option value="PP">PP -</option>

<option value="PPC">PPC -</option>

<option value="PPO">PPO -</option>

<option value="PPS">PPS -</option>

<option value="PTT">PTT -</option>

<option value="TPO">TPO -</option>

</select><br>
Original Part Number: <input type="text" name="opart" size="25" maxlength="18" value=""><br>
<table border="2">
<th>Field Name<th>Value


<tr>
<td>Program Specific</td>
<td><input type="text" name="Y/N Ind 1" size="1" maxlength="1" value="N" onblur="javascript: validate(this.value, 'Program Specific', 'Y/N');"><input type="hidden" name="fieldtype" value="Y/N"></td>
</tr>


<tr>
<td>Recommended</td>
<td><input type="text" name="Y/N Ind 2" size="1" maxlength="1" value="Y" onblur="javascript: validate(this.value, 'Recommended', 'Y/N');"><input type="hidden" name="fieldtype" value="Y/N"></td>
</tr>


<tr>
<td>TPSI</td>
<td><input type="text" name="Num 155 1" size="20" maxlength="16" value=".00000" onblur="javascript: validate(this.value, 'TPSI', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>PDS #</td>
<td><input type="text" name="Num 155 2" size="20" maxlength="16" value="1080.00000" onblur="javascript: validate(this.value, 'PDS #', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Specific Gravity</td>
<td><input type="text" name="Num 155 3" size="20" maxlength="16" value="1.20000" onblur="javascript: validate(this.value, 'Specific Gravity', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Shrinkage</td>
<td><input type="text" name="Num 155 4" size="20" maxlength="16" value=".60000" onblur="javascript: validate(this.value, 'Shrinkage', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Vent Depth 1</td>
<td><input type="text" name="Num 155 5" size="20" maxlength="16" value=".00150" onblur="javascript: validate(this.value, 'Vent Depth 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Vent Depth 2</td>
<td><input type="text" name="Num 155 6" size="20" maxlength="16" value=".00300" onblur="javascript: validate(this.value, 'Vent Depth 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Min Draft</td>
<td><input type="text" name="Num 155 7" size="20" maxlength="16" value="2.00000" onblur="javascript: validate(this.value, 'Min Draft', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Tensile Strength 1</td>
<td><input type="text" name="Num 155 8" size="20" maxlength="16" value="9.00000" onblur="javascript: validate(this.value, 'Tensile Strength 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Tensile Strength 2</td>
<td><input type="text" name="Num 155 9" size="20" maxlength="16" value="62.00000" onblur="javascript: validate(this.value, 'Tensile Strength 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Elongation at break</td>
<td><input type="text" name="Num 155 10" size="20" maxlength="16" value="130.00000" onblur="javascript: validate(this.value, 'Elongation at break', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Flexural Strength 1</td>
<td><input type="text" name="Num 155 11" size="20" maxlength="16" value="14.00000" onblur="javascript: validate(this.value, 'Flexural Strength 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Flexural Strength 2</td>
<td><input type="text" name="Num 155 12" size="20" maxlength="16" value="96.00000" onblur="javascript: validate(this.value, 'Flexural Strength 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Izod (unnotched) 1</td>
<td><input type="text" name="Num 155 13" size="20" maxlength="16" value=".00000" onblur="javascript: validate(this.value, 'Izod (unnotched) 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Izod (unnotched) 2</td>
<td><input type="text" name="Num 155 14" size="20" maxlength="16" value=".00000" onblur="javascript: validate(this.value, 'Izod (unnotched) 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Izod (notched) 1</td>
<td><input type="text" name="Num 155 15" size="20" maxlength="16" value="15.00000" onblur="javascript: validate(this.value, 'Izod (notched) 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Izod (notched) 2</td>
<td><input type="text" name="Num 155 16" size="20" maxlength="16" value="801.00000" onblur="javascript: validate(this.value, 'Izod (notched) 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Coef Lin Therm Exp 1</td>
<td><input type="text" name="Num 155 17" size="20" maxlength="16" value="39.00000" onblur="javascript: validate(this.value, 'Coef Lin Therm Exp 1', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Coef Lin Therm Exp 2</td>
<td><input type="text" name="Num 155 18" size="20" maxlength="16" value="70.20000" onblur="javascript: validate(this.value, 'Coef Lin Therm Exp 2', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Cost</td>
<td><input type="text" name="Num 155 19" size="20" maxlength="16" value=".00000" onblur="javascript: validate(this.value, 'Cost', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Usage</td>
<td><input type="text" name="Num 155 20" size="20" maxlength="16" value=".00000" onblur="javascript: validate(this.value, 'Usage', 'Num 155');"><input type="hidden" name="fieldtype" value="Num 155"></td>
</tr>


<tr>
<td>Flexural Modulus 1</td>
<td><input type="text" name="Num 10 1" size="15" maxlength="10" value="340" onblur="javascript: validate(this.value, 'Flexural Modulus 1', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Flexural Modulus 2</td>
<td><input type="text" name="Num 10 2" size="15" maxlength="10" value="2339" onblur="javascript: validate(this.value, 'Flexural Modulus 2', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>HDT 1</td>
<td><input type="text" name="Num 10 3" size="15" maxlength="10" value="270" onblur="javascript: validate(this.value, 'HDT 1', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>HDT 2</td>
<td><input type="text" name="Num 10 4" size="15" maxlength="10" value="132" onblur="javascript: validate(this.value, 'HDT 2', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Dry Time</td>
<td><input type="text" name="Num 10 5" size="15" maxlength="10" value="4" onblur="javascript: validate(this.value, 'Dry Time', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Dry Temp</td>
<td><input type="text" name="Num 10 6" size="15" maxlength="10" value="250" onblur="javascript: validate(this.value, 'Dry Temp', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Matl Temp 1</td>
<td><input type="text" name="Num 10 7" size="15" maxlength="10" value="560" onblur="javascript: validate(this.value, 'Matl Temp 1', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Matl Temp 2</td>
<td><input type="text" name="Num 10 8" size="15" maxlength="10" value="600" onblur="javascript: validate(this.value, 'Matl Temp 2', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Mold Temp 1</td>
<td><input type="text" name="Num 10 9" size="15" maxlength="10" value="160" onblur="javascript: validate(this.value, 'Mold Temp 1', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Mold Temp 2</td>
<td><input type="text" name="Num 10 10" size="15" maxlength="10" value="200" onblur="javascript: validate(this.value, 'Mold Temp 2', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Cost Yr</td>
<td><input type="text" name="Num 10 11" size="15" maxlength="10" value="0" onblur="javascript: validate(this.value, 'Cost Yr', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Usage Yr</td>
<td><input type="text" name="Num 10 12" size="15" maxlength="10" value="0" onblur="javascript: validate(this.value, 'Usage Yr', 'Num 10');"><input type="hidden" name="fieldtype" value="Num 10"></td>
</tr>


<tr>
<td>Shown On</td>
<td><input type="text" name="Txt 20 1" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Shown On', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Color</td>
<td><input type="text" name="Txt 20 2" size="30" maxlength="20" value="Medium Red" onblur="javascript: validate(this.value, 'Color', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>General Color</td>
<td><input type="text" name="Txt 20 3" size="30" maxlength="20" value="Red" onblur="javascript: validate(this.value, 'General Color', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Melt Flow 1</td>
<td><input type="text" name="Txt 20 4" size="30" maxlength="20" value="11.0(O)" onblur="javascript: validate(this.value, 'Melt Flow 1', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 Label</td>
<td><input type="text" name="Txt 20 5" size="30" maxlength="20" value="Color #" onblur="javascript: validate(this.value, 'Othr Prprty 1 Label', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 ASTM</td>
<td><input type="text" name="Txt 20 6" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 1 ASTM', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 1</td>
<td><input type="text" name="Txt 20 7" size="30" maxlength="20" value="Ford 18" onblur="javascript: validate(this.value, 'Othr Prprty 1 1', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 2</td>
<td><input type="text" name="Txt 20 8" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 1 2', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 1 Unit</td>
<td><input type="text" name="Txt 20 9" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 1 1 Unit', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 1 2 Unit</td>
<td><input type="text" name="Txt 20 10" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 1 2 Unit', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 Label</td>
<td><input type="text" name="Txt 20 11" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 Label', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 ASTM</td>
<td><input type="text" name="Txt 20 12" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 ASTM', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 1</td>
<td><input type="text" name="Txt 20 13" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 1', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 2</td>
<td><input type="text" name="Txt 20 14" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 2', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 1 Unit</td>
<td><input type="text" name="Txt 20 15" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 1 Unit', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Othr Prprty 2 2 Unit</td>
<td><input type="text" name="Txt 20 16" size="30" maxlength="20" value="" onblur="javascript: validate(this.value, 'Othr Prprty 2 2 Unit', 'Txt 20');"><input type="hidden" name="fieldtype" value="Txt 20"></td>
</tr>


<tr>
<td>Description</td>
<td><input type="text" name="Txt 40 1" size="60" maxlength="40" value="Medium viscosity polycarbonate, UV-stabi" onblur="javascript: validate(this.value, 'Description', 'Txt 40');"><input type="hidden" name="fieldtype" value="Txt 40"></td>
</tr>


<tr>
<td>Tooling Ownership</td>
<td><input type="text" name="Txt 40 2" size="60" maxlength="40" value="" onblur="javascript: validate(this.value, 'Tooling Ownership', 'Txt 40');"><input type="hidden" name="fieldtype" value="Txt 40"></td>
</tr>


<tr>
<td>Chemical Name</td>
<td><input type="text" name="Txt 40 3" size="60" maxlength="40" value="Polycarbonate" onblur="javascript: validate(this.value, 'Chemical Name', 'Txt 40');"><input type="hidden" name="fieldtype" value="Txt 40"></td>
</tr>


<tr>
<td>Supplier Name</td>
<td><input type="text" name="Txt 40 4" size="60" maxlength="40" value="Lexan LS2-6162" onblur="javascript: validate(this.value, 'Supplier Name', 'Txt 40');"><input type="hidden" name="fieldtype" value="Txt 40"></td>
</tr>


<tr>
<td>Remarks</td>
<td><input type="text" name="Txt 40 5" size="60" maxlength="40" value="" onblur="javascript: validate(this.value, 'Remarks', 'Txt 40');"><input type="hidden" name="fieldtype" value="Txt 40"></td>
</tr>


</table><br>
<input type="Submit" value="Submit">&nbsp;&nbsp;<input type="Reset"></form>
<form action="/cgi-bin/spdbw"><input type="Submit" value="Back"></form>
04/26/2005&nbsp;&nbsp;09:39:29
</body>
</html>


i've quadruple (sp?) checked my source to see if i left out any double quotes or equals signs and i can't find any...it's probably some real obvious stupid thing that i'm overlooking...

thanks for all your help so far...i really appreciate it...

Shane Cessna
iSeries Programmer
iSeries WAS Administrator
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.