hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not
doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number is inside file "filename") + 2 buttons: + and -
when pressing a button it opens a file and changing value to +1 or -1 and instantly showing this number
the form itself:
<form method=post>
<input type=submit name=\"filename\" value=yes class=yes>
<div class=\"votes\">$curscore</div>
<input type=submit name=\"filename\" value=no class=no>
</form>
so, if I'm executing the script in a browser and not through "include virtual" then it works pretty fine just like intended but if through include virtual then when pressing any of submit buttons the page is reloading but file keeps untouched..
I've tryed to put 'action="/cgi-bin/script.cgi"' inside form, but then when pressing submit it will change to a new window just like if I would execute script inside browser itself
so what is the right way to insert script inside shtml so it will works fine just like inside browser?
P.S. btw if I use 'exec cgi' then it works but without ?filename
with ?filename it shows error: invalid CGI ref..