Home: Perl Programming Help: Beginner:
Call a perl script from html



labrune
Deleted

Feb 20, 2001, 2:21 AM


Views: 364
Call a perl script from html

Would like to know how to call a working script uploaded in CGI BIN directory from HTML pages.Our server is Windows 2000 supporting SSI. We have tried the 'Include Virtual' line of code but its still not working. Can anybody help us???????????



pu_nk
journeyman

Feb 20, 2001, 3:28 AM


Views: 362
Re: Call a perl script from html

WHat does your SSI tag look like ?
Just to make sure...





muinatit
Deleted

Feb 20, 2001, 1:40 PM


Views: 351
Re: Call a perl script from html


Code
< !--#exec cgi="cgi-bin/whatever.pl"-- >

Jeffrey "muinatit" Lamoureux
muinatit@hotpop.com


Jasmine
Administrator / Moderator

Feb 21, 2001, 1:32 AM


Views: 347
Re: Call a perl script from html

That code assumes that the calling page is in a directory "one level up", as in your main www directory.

Try using

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

(remove the space between the < and the !)