CGI question

I may be doing this the wrong way, but here goes. Here’s a simplified
version of the issue. I have a web page to display that has radio
buttons with options for various settings. I want to set the radio
buttons to their current setting.

For the current setting, I have a file CONFIG.INI that has the
following line in it (and others):
UNITS=KG

The page to be displayed includes a radio button that allows the
person to change UNITS to either “KG” or “LB” with a radio button.

I want to set UNITS to the current value from the CONFIG.INI file.


| Units: @ KG | ← shows current value from CONFIG.INI
| O LB |

[submit]

I’m trying to do this with server side includes (SSI) similar to the
following:

<INPUT ID=“FormsRadioButton7” TYPE=RADIO NAME=“UnitsWeight” VALUE=“kg”

>

…where the script looks up the value in the file and outputs “CHECKED”
to cause the radio button to be selected.

The problem is that slinger isn’t doing the SSI. If I do this:
cgi=“config.cgi/?action=getval&val=UnitsWeight”
it runs the script, but the script doesn’t get any parameters.

Anyone see a problem with doing this? Is there a different way?
Can it be done?

Thanks!
Barry

We use apache to do CGI Stuff
I create a html page with a tag (Replacable Plain Uppercase Text Block: i.e.
REPLACE_ITEM1)
in it where a customized piece is to be substituted in, then
I have either a C or python program read & print the file line by line back
to apache & the user, and upon detecting the replacement string substitiute
in the customized piece.
Gives the advantage of using a GUI to develope the page and allowing full C
or python coding of specific pieces.
Haven’t used SSI (yet) as this other method works for now, and can be
encoded as pure HTML compatible with the lowest level browser…
-Paul


Barry Robertson <brobertson@SoftwareRemodeling.com> wrote in message
news:39EDC929.62FBFDAD@SoftwareRemodeling.com

I may be doing this the wrong way, but here goes. Here’s a simplified
version of the issue. I have a web page to display that has radio
buttons with options for various settings. I want to set the radio
buttons to their current setting.

For the current setting, I have a file CONFIG.INI that has the
following line in it (and others):
UNITS=KG

The page to be displayed includes a radio button that allows the
person to change UNITS to either “KG” or “LB” with a radio button.

I want to set UNITS to the current value from the CONFIG.INI file.


| Units: @ KG | ← shows current value from CONFIG.INI
| O LB |

[submit]

I’m trying to do this with server side includes (SSI) similar to the
following:

INPUT ID=“FormsRadioButton7” TYPE=RADIO NAME=“UnitsWeight” VALUE=“kg”
!–#exec cgi=“config.cgi?action=getval&val=UnitsWeight” –

…where the script looks up the value in the file and outputs “CHECKED”
to cause the radio button to be selected.

The problem is that slinger isn’t doing the SSI. If I do this:
cgi=“config.cgi/?action=getval&val=UnitsWeight”
it runs the script, but the script doesn’t get any parameters.

Anyone see a problem with doing this? Is there a different way?
Can it be done?

Thanks!
Barry

See also for Apache SSI: http://bignosebird.com/apache/a4.shtml

Paul Russell <paul@jenosys.com> wrote in message
news:8sl4in$34r$1@inn.qnx.com

We use apache to do CGI Stuff
I create a html page with a tag (Replacable Plain Uppercase Text Block:
i.e.
REPLACE_ITEM1)
in it where a customized piece is to be substituted in, then
I have either a C or python program read & print the file line by line
back
to apache & the user, and upon detecting the replacement string
substitiute
in the customized piece.
Gives the advantage of using a GUI to develope the page and allowing full
C
or python coding of specific pieces.
Haven’t used SSI (yet) as this other method works for now, and can be
encoded as pure HTML compatible with the lowest level browser…
-Paul


Barry Robertson <> brobertson@SoftwareRemodeling.com> > wrote in message
news:> 39EDC929.62FBFDAD@SoftwareRemodeling.com> …

I may be doing this the wrong way, but here goes. Here’s a simplified
version of the issue. I have a web page to display that has radio
buttons with options for various settings. I want to set the radio
buttons to their current setting.

For the current setting, I have a file CONFIG.INI that has the
following line in it (and others):
UNITS=KG

The page to be displayed includes a radio button that allows the
person to change UNITS to either “KG” or “LB” with a radio button.

I want to set UNITS to the current value from the CONFIG.INI file.


| Units: @ KG | ← shows current value from CONFIG.INI
| O LB |

[submit]

I’m trying to do this with server side includes (SSI) similar to the
following:

INPUT ID=“FormsRadioButton7” TYPE=RADIO NAME=“UnitsWeight” VALUE=“kg”
!–#exec cgi=“config.cgi?action=getval&val=UnitsWeight” –

…where the script looks up the value in the file and outputs “CHECKED”
to cause the radio button to be selected.

The problem is that slinger isn’t doing the SSI. If I do this:
cgi=“config.cgi/?action=getval&val=UnitsWeight”
it runs the script, but the script doesn’t get any parameters.

Anyone see a problem with doing this? Is there a different way?
Can it be done?

Thanks!
Barry