× 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.



Peter,

I'm not certain this is what you're asking, but...

Checkbox values are ONLY required to the CGI program when they ARE CHECKED.
If they are NOT CHECKED, they are NOT RETURNED to the CGI program.
If you extract the "poim" value when the variables is NOT CHECKED, you will
not get a returned value in your CGI program.

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.


-----Original Message-----
From: web400-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx
[mailto:web400-bounces+cozzi=rpgiv.com@xxxxxxxxxxxx] On Behalf Of Peter
Vidal
Sent: Thursday, January 12, 2006 1:34 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] ***** <input TYPE="checkbox"> issue

***********************************
"I use this...
<input type="checkbox" name="poim" value ="yes"> Include PO's with
Inventoried Materials<br>

And on the back end...

  POIM     = zhbGetVar('poim'); 
...
 if poim     = 'yes';
            sql = sql + 
            ' ';
            else;
            sql = sql + 
            ' and orgin_of_data in (''I'',''B'',''P'')';
...".
***********************************

Thanks for responding Tim:

My question however is: why I have to do that?  I thought that the 
"checkbox" logic is very straight forward: it requires to be "checked" in 
order to have a TRUE value.  My issue is that I do not know why is ALWAYS 
TRUE.

I have checked on the archives but I have not found anything yet about 
this issue and checking on other forums as well.  I am sure it might be a 
simple thing and I am extremely confused... :o(


Peter Vidal 
PALL Corporation / SR Programmer Analyst, IT Development Group
10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111
http://www.pall.com

"Sincerity is the way of Heaven."
Mencius (371 BC - 289 BC), Works



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.