in reply to Re^5: Pass the value from perl script to html page
in thread Pass the value from perl script to html page

....:-( but I have done lot of work on it, can I use the same one or I will have to start from scratch.
  • Comment on Re^6: Pass the value from perl script to html page

Replies are listed 'Best First'.
Re^7: Pass the value from perl script to html page
by gellyfish (Monsignor) on May 04, 2005 at 10:43 UTC

    Yes. You just use your existing HTML file as the basis for the template - inserting the appropriate template directives where you wish them to be replaced by your chosen text and then feed it through the template processor as appropriate. There is no mechanism to pass a value from a perl program directly to an HTML page as you seem to believe.

    /J\

      but if I can get the values from html page by using following lines 'my $query = new CGI;' 'my $sirName = $query ->param("sirName");' why I cant do the same to pass values from perl to html...

        Er, because you can't. Please review the fine documentation on HTML and associated technologies at http://www.w3c.org to confirm this for yourself.

        /J\

        You open the html file and process it the way I showed you in the example I wrote, or using HTML::Template if you need elaborate tricks.