Slinger SSI problems

I’m trying to use SSI in slinger. Most of the SSI commands I can get to work
fine, but the #if command doesn’t seem to work as documented. For example:

results in say 192.168.0.2 being displayed. However if I do the command

the nothing appears on the web page but

does print out the text.

I also cannot work out how to reference the value of a form field. Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark

Please don’t cross post. Follow up with your post in
qdn.public.qnxrtp.newuser.

Regards,
Dave B.

“mtv” <mark@nouce.mtvickers.freeserve.co.uk> wrote in message
news:ajvden$6d5$1@inn.qnx.com

I’m trying to use SSI in slinger. Most of the SSI commands I can get to
work
fine, but the #if command doesn’t seem to work as documented. For example:
!–#echo var=“REMOTE_ADDR” –
results in say 192.168.0.2 being displayed. However if I do the command
!–#if “REMOTE_ADDR” == “192.168.0.2” print “Known address” –
the nothing appears on the web page but
!–#if “REMOTE_ADDR” != “192.168.0.2” print “Address not known” –
does print out the text.

I also cannot work out how to reference the value of a form field.
Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me
some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark




\

I haven’t cross posted!
I’ve posted this question to four different qnx newsgroups over a two week
period as I was getting no response. I found it difficult to believe that no
one else uses SSI in slinger and thought posting to a different newsgroup
after a few days would be OK, but obviously no one who regularly looks at
the newsgroups I have posted to uses SSI in slinger as no one has answered.
Hence my posting of the same question to this newsgroup over two days after
the one to qdn.public.qnxrtp.newsuser.
The only response I’ve had (in .newuser) is to ask me if my web pages use a
shtml extension which if you’ve read my message and understand a little
about SSI you would know that the web pages must have a shtml exension for
them to work at all.
This is the last newsgroup I’ll post to on this subject as I’ve given up on
SSI and have moved to CGI as I can’t get SSI to work in any useful way
(apart from including other files or displaying the date).

Oh by the way this IS a cross post >:o(

Dave <dboltz11@rogers.com> wrote in message
news:ak0405$m1t$1@nntp.qnx.com

Please don’t cross post. Follow up with your post in
qdn.public.qnxrtp.newuser.

Regards,
Dave B.

“mtv” <> mark@nouce.mtvickers.freeserve.co.uk> > wrote in message
news:ajvden$6d5$> 1@inn.qnx.com> …
I’m trying to use SSI in slinger. Most of the SSI commands I can get to
work
fine, but the #if command doesn’t seem to work as documented. For
example:
!–#echo var=“REMOTE_ADDR” –
results in say 192.168.0.2 being displayed. However if I do the command
!–#if “REMOTE_ADDR” == “192.168.0.2” print “Known address” –
the nothing appears on the web page but
!–#if “REMOTE_ADDR” != “192.168.0.2” print “Address not known” –
does print out the text.

I also cannot work out how to reference the value of a form field.
Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me
some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark






\

There are different newsgroups for a reason. If you have a question about
tools you post in the tools newsgroup, if you have a question about photon
you post in the photon newsgroup and so on. Most people read all the
newsgroups anyway and therefore will see your question at one time or
another. Cross posting also leads to these same people reading your
question in different newsgroups, which can be vary annoying. All I was
asking is that you post in the proper newsgroup and wait for a response. If
there is no response for an extended period of time, post a ping to your
question. It doesn’t piss people off as much.



You may want to take the time to read the following link on newsgroup
etiquette.

http://www.aol.com/netfind/newsgroup/etiquette.html



Dave


“mtv” <mark@nouce.mtvickers.freeserve.co.uk> wrote in message
news:ak182o$iuc$1@inn.qnx.com

I haven’t cross posted!
I’ve posted this question to four different qnx newsgroups over a two week
period as I was getting no response. I found it difficult to believe that
no
one else uses SSI in slinger and thought posting to a different newsgroup
after a few days would be OK, but obviously no one who regularly looks at
the newsgroups I have posted to uses SSI in slinger as no one has
answered.
Hence my posting of the same question to this newsgroup over two days
after
the one to qdn.public.qnxrtp.newsuser.
The only response I’ve had (in .newuser) is to ask me if my web pages use
a
shtml extension which if you’ve read my message and understand a little
about SSI you would know that the web pages must have a shtml exension for
them to work at all.
This is the last newsgroup I’ll post to on this subject as I’ve given up
on
SSI and have moved to CGI as I can’t get SSI to work in any useful way
(apart from including other files or displaying the date).

Oh by the way this IS a cross post >:o(

Dave <> dboltz11@rogers.com> > wrote in message
news:ak0405$m1t$> 1@nntp.qnx.com> …
Please don’t cross post. Follow up with your post in
qdn.public.qnxrtp.newuser.

Regards,
Dave B.

“mtv” <> mark@nouce.mtvickers.freeserve.co.uk> > wrote in message
news:ajvden$6d5$> 1@inn.qnx.com> …
I’m trying to use SSI in slinger. Most of the SSI commands I can get
to
work
fine, but the #if command doesn’t seem to work as documented. For
example:
!–#echo var=“REMOTE_ADDR” –
results in say 192.168.0.2 being displayed. However if I do the
command
!–#if “REMOTE_ADDR” == “192.168.0.2” print “Known address” –
the nothing appears on the web page but
!–#if “REMOTE_ADDR” != “192.168.0.2” print “Address not known” –
does print out the text.

I also cannot work out how to reference the value of a form field.
Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me
some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark








\

So which newsgroup should I post in? Slinger could be considered an
application, hence posting in this newsgroup. It is also part of the OS as
installed so it is just as valid to post in qdn.public.qnxrtp.os or
comp.os.qnx. I haven’t been using qnx for very long so my question may be a
“newbie” question so I could also just as validly post in
qdn.public.qnxrtp.newuser.

Perhaps you should take the time to read the etiquette link you kindly
pointed me at. It doesn’t mention any of the reasons about which you are
objecting to my posts.

Mark

Dave <dboltz11@rogers.com> wrote in message
news:ak2s05$6q9$1@nntp.qnx.com

There are different newsgroups for a reason. If you have a question about
tools you post in the tools newsgroup, if you have a question about photon
you post in the photon newsgroup and so on. Most people read all the
newsgroups anyway and therefore will see your question at one time or
another. Cross posting also leads to these same people reading your
question in different newsgroups, which can be vary annoying. All I was
asking is that you post in the proper newsgroup and wait for a response.
If
there is no response for an extended period of time, post a ping to your
question. It doesn’t piss people off as much.



You may want to take the time to read the following link on newsgroup
etiquette.

http://www.aol.com/netfind/newsgroup/etiquette.html



Dave

Mark

I did try SSI myself when I was learning about dynamic content, but have
found CGI to be much more flexible and usable. Go the CGI route is my two
bobs worth.

Rod

“mtv” <mark@nouce.mtvickers.freeserve.co.uk> wrote in message
news:ak182o$iuc$1@inn.qnx.com

I haven’t cross posted!
I’ve posted this question to four different qnx newsgroups over a two week
period as I was getting no response. I found it difficult to believe that
no
one else uses SSI in slinger and thought posting to a different newsgroup
after a few days would be OK, but obviously no one who regularly looks at
the newsgroups I have posted to uses SSI in slinger as no one has
answered.
Hence my posting of the same question to this newsgroup over two days
after
the one to qdn.public.qnxrtp.newsuser.
The only response I’ve had (in .newuser) is to ask me if my web pages use
a
shtml extension which if you’ve read my message and understand a little
about SSI you would know that the web pages must have a shtml exension for
them to work at all.
This is the last newsgroup I’ll post to on this subject as I’ve given up
on
SSI and have moved to CGI as I can’t get SSI to work in any useful way
(apart from including other files or displaying the date).

Oh by the way this IS a cross post >:o(

Dave <> dboltz11@rogers.com> > wrote in message
news:ak0405$m1t$> 1@nntp.qnx.com> …
Please don’t cross post. Follow up with your post in
qdn.public.qnxrtp.newuser.

Regards,
Dave B.

“mtv” <> mark@nouce.mtvickers.freeserve.co.uk> > wrote in message
news:ajvden$6d5$> 1@inn.qnx.com> …
I’m trying to use SSI in slinger. Most of the SSI commands I can get
to
work
fine, but the #if command doesn’t seem to work as documented. For
example:
!–#echo var=“REMOTE_ADDR” –
results in say 192.168.0.2 being displayed. However if I do the
command
!–#if “REMOTE_ADDR” == “192.168.0.2” print “Known address” –
the nothing appears on the web page but
!–#if “REMOTE_ADDR” != “192.168.0.2” print “Address not known” –
does print out the text.

I also cannot work out how to reference the value of a form field.
Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me
some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark








\

I don’t know where this is documented, but the trick is to bracket the
variable names with &&'s; otherwise the comparision is done on the
string itself, and since ‘R’ is not equal to ‘1’, the result is never
‘equal’. Try it this way:

Murf


mtv wrote:

I’m trying to use SSI in slinger. Most of the SSI commands I can get to work
fine, but the #if command doesn’t seem to work as documented. For example:
!–#echo var=“REMOTE_ADDR” –
results in say 192.168.0.2 being displayed. However if I do the command
!–#if “REMOTE_ADDR” == “192.168.0.2” print “Known address” –
the nothing appears on the web page but
!–#if “REMOTE_ADDR” != “192.168.0.2” print “Address not known” –
does print out the text.

I also cannot work out how to reference the value of a form field. Whenever
I #echo the name of a form field nothing comes out.

Has anyone successfully used these SSI commands? If so can you give me some
examples of #if that work and examples of a form definition and an SSI
commands that access the form data.

Thanks in advance
Mark