Hi

How about:
=================================================
1  UserIP = Request.ServerVariable("REMOTE_HOST")
2  IPCheck = Left(UserIP,7)
3  If IPCheck = "192.168" Then
4     parser.setSingleSessionField "My_Template", "template_i"
5  Else
6     parser.setSingleSessionField "My_Template", "template_o"
7  End If
=================================================




-----Original Message-----
Sent: Friday, April 20, 2001 3:50 PM
To: Multiple recipients of list ORACLE-L


I apologize for being off topic here, but I am stuck.

I have been struggling for 3 days on what I believe is a simple script.

Here is the piece of code which is not functioning as I require:

1  UserIP = Request.ServerVariable("REMOTE_HOST")
2  IPCheck = Left(UserIP,7)
3  If UserIP = "192.168" Then
4     parser.setSingleSessionField "My_Template", "template_i"
5  Else
6     parser.setSingleSessionField "My_Template", "template_o"
7  End If

If I comment out all but line 4, I can verify that My_Template is set to 
'template_i'.  If I comment out all but line 6, I can verify that 
My_Template is set to 'template_o'.  If I run with now lines commented, 
My_Template winds up blank.

What am I doing wrong?
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: William Rogge
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Johan Locke@i-Commerce
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to