Hi!
I'd like to ask some questions about a perl script.
On the web page of my server it's said that scripts should be run from a web page by the line:
<!--#exec cgi="/directory/file.cgi"-->
My question is: where should this line come in the HTML page?
The HTML page is like:
<FORM ACTION="http://www.straland.com/cgi-bin/whereisthesave.pl" METHOD="POST">
<select size="1" name="player" tabindex="1">
<option>Matrix</option>
blablabla
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2">
</form>
Is this correct anyway?
I'd appreciate any help!!
---
Background info:
My knowledge of Perl is rather limited, but that's not the point here. But I'm trying to make an online program to let people keep up where a PBEM savegame is at the moment. So I already made this page:
http://www.straland.com/DDPP/whereisthesave.html
Left frame is this.
Right frame should be the text file to which you want to add the text of the form. E.g., if you select "Kemal" and "3800 BC", the text "Kemal 3800 BC\n" should be added to the text file on the right.
Unfortunately the locations of HTML pages and Perl/CGI pages are separated.
HTML pages should be in "/html".
Perl&CGI in "/cgi-bin".
Anything in "/html" is located on the web in "http://www.straland.com/".
Anything in "/cgi-bin" in "http://www.straland.com/cgi-bin/".
I'd like to ask some questions about a perl script.
On the web page of my server it's said that scripts should be run from a web page by the line:
<!--#exec cgi="/directory/file.cgi"-->
My question is: where should this line come in the HTML page?
The HTML page is like:
<FORM ACTION="http://www.straland.com/cgi-bin/whereisthesave.pl" METHOD="POST">
<select size="1" name="player" tabindex="1">
<option>Matrix</option>
blablabla
<input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2">
</form>
Is this correct anyway?
I'd appreciate any help!!
---
Background info:
My knowledge of Perl is rather limited, but that's not the point here. But I'm trying to make an online program to let people keep up where a PBEM savegame is at the moment. So I already made this page:
http://www.straland.com/DDPP/whereisthesave.html
Left frame is this.
Right frame should be the text file to which you want to add the text of the form. E.g., if you select "Kemal" and "3800 BC", the text "Kemal 3800 BC\n" should be added to the text file on the right.
Unfortunately the locations of HTML pages and Perl/CGI pages are separated.

HTML pages should be in "/html".
Perl&CGI in "/cgi-bin".
Anything in "/html" is located on the web in "http://www.straland.com/".
Anything in "/cgi-bin" in "http://www.straland.com/cgi-bin/".