Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: generate html on the fly
by BigGuy (Friar) on May 28, 2001 at 06:42 UTC
    A little more information would be handy here; Are you just going to be passing snippets of html or whole html documents? this could be really simple such as
    #!/usr/bin/perl #Forgive me please ppl i am not a cgi guru just using this to illustra +te a point GetFormInput(); my $html = $field{html); print "$html";
    if you are passing a whole html document with complete headers and stuff. If it is just going to be snippets of html you had better brush up on CGI.PM (this is a link to Ovid's Tutorial).

    BigGuy
    "One World, one Web, one Program" - Microsoft promotional ad
    "Ein Volk, ein Reich, ein Fuhrer" - Adolf Hitler
Re: generate html on the fly
by shotgunefx (Parson) on May 28, 2001 at 06:48 UTC
    Do your own homework.

    Do you think you could have made even the slightest effort before posting such a request here?

    If you had said "This is my problem, can anyone point me in the right direction?" or "I have this code but I can't figure out why it isn't working" you would more than likely get more than a few helpful responses, but if you expect people to do your work without you making so much as an effort, you're whacked in my opinion.

    Update
    To clarify what I meant by "homework", any effort to figure out the problem or even contemplate an approach to solving it. To me this post says "Write me a script"

    -Lee

    "To be civilized is to deny one's nature."
(jeffa) Re: generate html on the fly
by jeffa (Bishop) on May 28, 2001 at 18:00 UTC
    use strict; use CGI; my $CGI = new CGI; print $CGI->header(); if (my $html = $CGI->param('html')) { print $html; } else { print $CGI->start_html('title'), $CGI->start_form, $CGI->textarea(-name=>'html',-rows=>10,-columns=>50), $CGI->submit,$CGI->end_form, $CGI->hr, $CGI->end_html; }

    Jeff

    R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
    L-L--L-L--L-L--L-L--L-L--L-L--L-L--