I want to embed a perl program into a shtml file so I can include a top.shtml and a bottom.shtml which has normal markup stuff like CSS. But, I also want to pass information via POST to the script.
When I have this in the .shtml which is recieving information from a HTML form:
<!--#include virtual="top.shtml"-->
<!--#exec cgi="/cgi-bin/script.pl"-->
<!--#include virtual="bottom.shtml"-->
Everything there is correct, but none of the information from the form is being passed to script.pl, and therefore it does nothing.
Does anyone know if this is possible? I heard something about EmbPerl but I'm not sure if it's the right way to do it.
Also, I don't want to just print out the contents of top.shtml in the script because that would just be slow.
Thanks in advance for any help...
-Justin
When I have this in the .shtml which is recieving information from a HTML form:
<!--#include virtual="top.shtml"-->
<!--#exec cgi="/cgi-bin/script.pl"-->
<!--#include virtual="bottom.shtml"-->
Everything there is correct, but none of the information from the form is being passed to script.pl, and therefore it does nothing.
Does anyone know if this is possible? I heard something about EmbPerl but I'm not sure if it's the right way to do it.
Also, I don't want to just print out the contents of top.shtml in the script because that would just be slow.
Thanks in advance for any help...
-Justin
Comment