Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Perl Question

  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Perl Question

    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

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    hey,
    hmm yeh cuz the info does not have a target....would be best to have the pl script including the .shtml files do ya know how to do that?
    sir p

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you look at this site: http://bilder.ecos.de/index1.htm

    Click on the third link from the left at the top, it takes you to a form, the form's action is set to another .htm file where it's processed. There must be a perl script embedded somewhere in that htm file that the form leads to.

    I want to know how to do this...

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Mex
    Posts
    122
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im really not sure but maybe that form is sent via not server side,

    i really dont know this for sure,

    Calilo

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts
    yeh im prolly agreein with Calilo here...you can proberly get a small bit oof java script to do the jod for you maybe
    sir p


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •