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


  • Subject: RE: %20 and %40 on user name passing in cgi for names with a space - why or what am I doing wrong
  • From: "Bartell, Aaron L. (TC)" <ALBartell@xxxxxxxxxxxxxx>
  • Date: Fri, 25 May 2001 15:45:11 -0500

This is what I have in my pgms to retrieve the user(one of many environment
variables):

C                   CALLP     #GetEnv(EnvRec:'REMOTE_USER':EnvRecLen)
 *                                                                   
C                   if        (EnvRecLen > 0)                        
C                   eval      UserID = %subst(EnvRec:1:EnvRecLEn)    
C                   endif                                            

If you need the code to #GetEnv I can get it for you.  I can't remember if
that was in Brad's book or not and I am to lazy to look 8^)

Aaron Bartell

-----Original Message-----
From: Mark A. Manske [mailto:mmanske@minter-weisman.com]
Sent: Friday, May 25, 2001 11:21 AM
To: 'WEB400 (E-mail)
Subject: %20 and %40 on user name passing in cgi for names with a space
- why or what am I doing wrong


I have Brad's book, and have been doing much,  on our as/400 at
http://ca.minter-weisman.com  with a colon 8531 from the outside
(this has been done because our router guy has not been able to get the
forwarding to specific ports to work on the firewall/router)

"works" only valid user id is markm and test, I have been testing with a
usered of "amy denzen" , could sign on ok, but then next pages
with the name passed errors out, the page is built for the cgi parm "ok" but
in debugging the programs I found the environment record
for the usrid had the %40 to replace the space; then also the page being
displayed would then show the address but replacing the space
in the name with a %20;

My question is this - is this normal, or did I do something wrong on my get
environment variables??  I mostly copied what Brad had done,
however I did sub procedure and use CALLP where appropriate, I have gotten
around this by writing another sub procedure that I have been testing
in the other web instance on another port, and that does the trick for me by
stripping out the %40 and making one space -(gotta love that %replace)
so I do have a work around, but was it necessary?   I am not sure about
posting code, it is rather "interesting" and long, considering each "key" on
the web page uses six sub procedures....

Is there anything obvious to look for, or is this "how it works"

I was also wondering on the first "page", the only true html page(non-cgi
generating page) how do I "position the cursor" on the first input field,
most web sites I have visited do not, but the few I have run across, I do
not "see" anything obvious as to how they did it - has been interesting
being a old rpger doing html code....

TIA


Mark A. Manske
Minter-Weisman Co.
Sr. Project Lead


+---
| This is the WEB400 Mailing List!
| To submit a new message, send your mail to WEB400@midrange.com.
| To subscribe to this list send email to WEB400-SUB@midrange.com.
| To unsubscribe from this list send email to WEB400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the WEB400 Mailing List!
| To submit a new message, send your mail to WEB400@midrange.com.
| To subscribe to this list send email to WEB400-SUB@midrange.com.
| To unsubscribe from this list send email to WEB400-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.