in reply to Perl and html

Have the script deliver the original html page, then return both the original page and the results back to the client using whatever formatting you want. You can tell whether it is an initial load or a form submit when your script receives the request...

...one of many ways.. Hope that is helpful.

...the majority is always wrong, and always the last to know about it...

A solution is nothing more than a clearly stated problem...

Replies are listed 'Best First'.
Re^2: Perl and html
by kepler (Scribe) on Sep 05, 2015 at 01:09 UTC

    Hi,

    That was my original idea. But the problem is the page html menu links. The html page and the script are in diferent locations...which is a mess...How c

    an I give back the html page in the right place?...

      Hi, That was my original idea. But the problem is the page html menu links. The html page and the script are in diferent locations...which is a mess...How can I give back the html page in the right place?...

      :) So now you know what you have to fix, fix the links

      Several approaches, mostly, have the original page simply call / redirect / link to the "program", and have the program present all the html with all the links fixed

        I thought in a solution: to execute a php script and call the perl script. That way I could submit the page to itself. Problem: I'm trying the command $result = shell('perl script.pl $arg'); with arg equal to, for instance, 'number=1000'. It' not working... :(