CGI tags HTML problem, not really sure

M

Mjolinor

I have a web page running on a Rabbit processor and can call the CGIs from
the C programme within the Rabbit with:-

<TD> <A HREF="/tv_tog.cgi"> <img SRC="<!--#echo var="tv"-->"> </TD>

I can make the CGI do what its supposed to do from an external web page
with:-

<TD> <A HREF="http://192.168.0.99:140/tv_on.cgi"> <img SRC="<!--#echo
var="http://192.168.0.99:140/tv"-->"> </TD>

It switches a relay on or off. The switching works fine in both cases (first
half of the above lines) but I can't get the state of the relay back to the
external webpage (second half of the above lines). The variable "tv" is
either tv_on.gif or tv_off.gif and when run from the embedded Rabbit it is
displayed correctly but it is not found when the web page is external to the
Rabbit.

I basically don't know how to pass changing information into the external
webpage. I seems to be something to do with SSI but I can't find an example
close enough for me to understand.

You probably guessed I am not any good at all with HTML or C, both of which
are needed to do this. It isn't a matter of me making something useable, I
just have to prove that the hardware is up to the task it is required for.

Apologies if this post is interpreted as HTML, this is just another one of
the problems I have to put up with to ask for help :)
 
T

Toby Inkster

Mjolinor said:
I basically don't know how to pass changing information into the external
webpage. I seems to be something to do with SSI but I can't find an example
close enough for me to understand.

Your "external webpage" needs to itself be a CGI[1] file.

____
1. There are alternatives to CGI: SSI, PHP, ASP, JSP and plenty more, but
if you're already familiar with the CGI interface, I'd suggest sticking
with that.
 
M

Mjolinor

Toby Inkster said:
Mjolinor said:
I basically don't know how to pass changing information into the external
webpage. I seems to be something to do with SSI but I can't find an
example
close enough for me to understand.

Your "external webpage" needs to itself be a CGI[1] file.

Thanks for the reply.

Unfortunately I need more information. I don't know much about what I am
doing. I only got it working in the first place because of the samples
included in "Dynamic C" with the Rabbit development kit.

This should get me laughed at :)

Are you saying I need to write a CGI file in C that runs on the PC with the
web page on and that is accessed by the webpage but the PC CGI calls the
Rabbit CGI?

Do you have any links to examples that may help me. I usually make most
progress if I can nick someone elses hard work :)

Please pretend your talking to a moron, it's easier to skip over things I do
understand than to guess things I don't.
 
N

Neredbojias

With neither quill nor qualm, Mjolinor quothed:
Toby Inkster said:
Mjolinor said:
I basically don't know how to pass changing information into the external
webpage. I seems to be something to do with SSI but I can't find an
example
close enough for me to understand.

Your "external webpage" needs to itself be a CGI[1] file.

Thanks for the reply.

Unfortunately I need more information. I don't know much about what I am
doing. I only got it working in the first place because of the samples
included in "Dynamic C" with the Rabbit development kit.

This should get me laughed at :)

Hah hah. -You know more than I do.

.....
Please pretend your talking to a moron, it's easier to skip over things I do
understand than to guess things I don't.

No problem, we practice in the mirror all the time.
 
T

Toby Inkster

Mjolinor said:
Are you saying I need to write a CGI file in C that runs on the PC with the
web page on and that is accessed by the webpage but the PC CGI calls the
Rabbit CGI?

I am saying that if you want to dynamically include text into a web page,
then that web page must be written dynamically: that is, using CGI or
similar. It doesn't need to be written in C. CGI allows you to write a
page in pretty much any programming language you like.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top