PDA

View Full Version : Integrating cgi into html files?


AdamG
03-12-2001, 04:07 PM
Ive seen this done before, but i cant figure it out. How do i add a poll to the main page of my site. Ive got the script working, just cant figure out how to add it to the main page of my website?

Please respond, or contact me on icq 100106721

jonirvine
04-13-2001, 11:35 AM
You probably need to add it using Server Side Includes? (Not sure though!)

To do this you'll need a server that supports it. Check that out and reply. Also, which poll script are you using?

Jon

kevin
04-13-2001, 12:50 PM
Hmmm..... if you want to display the form used to take the poll, just add the appropriate HTML code of the poll form to your webpage. If you want to display the results of the poll that would probably be easiest to do using SSI. Your server must be setup to allow SSI tags so consult with your webhost if you are unsure.

Kevin

JohnM
04-13-2001, 01:58 PM
Yeah, I think you would be thinking of SSI (server side includes), in most CGI scripts that you need to use SSI, it works like this:

<!--#include virtual="cgi-bin/yourcgifile" -->

pixelmonkey
04-16-2001, 04:12 PM
to access cgi virtually in any .shtml (you have to use that file format on the page that the .cgi is being included into!) is...

<!--#exec cgi="/cgi-bin/Ultimate.cgi" -->

i hope this helps!

now on a quest to get you to change your mind about htmlforums!
chris<pixelmonkey>