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



Does anyone know the limitations for the passing of an HTML variable to and from an RPG program using CGIBIN2 and/or Bob Cozzi's RPG xTools?

Do you mean CGIDEV2? I'm not familiar with CGIBIN2, but I suspect you might mean CGIDEV2.

In CGIDEV2 there are two subprocs for receiving a variable. zhbgetvar() is the most commonly used, and it's limited to 32k per variable. There's also zhbgetvarptr() which is supposed to allow for larger variable sizes, though I have no idea what it's limit is.

I've never used xTools

I'm trying to create a task management tool where I can create tasks for my staff, publish specifications, developer notes, etc and I need to know how just how big I can make a text box to support each "note" type.

If you read stdin yourself and use a multipart/form-data encoding, you should have no problem making it as large as you want.

Also, is there a way to browse to Windows to "attach" scanned documents?
Ideally what I'd probably want to do is do a browse, open up a Windows
dialog box to search for a file ,then when selected copy it to the IFS where
I could then reference it later from a web page via my CGI programs.

So you want the user to have a browse button on the web page, and when he clicks it, it'll give him a file dialog and let him pick a file? That's simple HTML tag.

<input type="File">

Again, I suggest multipart/form-data for this since IMHO it just works better with file uploads. URL encoding the entire file seems kinda silly. Make sure you use POST, or you'll run into the size limit of GET very quickly.

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.