Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Mixing POST and GET with CGI::Application

by c4onastick (Friar)
on Mar 06, 2009 at 18:58 UTC ( #748939=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package TestSite;
    use base 'CGI::Application';
    use warnings;
    ...
        return $template->output;
    }
    1;
    
  2. or download this
    <html>
        <head>
            <title>One</title>
    ...
            </form>
        </body>
    </html>
    
  3. or download this
    <html>
        <head>
            <title>Two</title>
    ...
            <p><a href='index.pl?rm=mode1'>Click to go back to one</a></p>
        </body>
    </html>
    
  4. or download this
    <html>
        <head>
            <title>One</title>
    ...
            </form>
        </body>
    </html>
    
  5. or download this
    #!/Perl/bin/perl
    
    use warnings;
    ...
    my $template = HTML::Template->new(filename => 'mode1a.html');
    
    print "Content-Type: text/html\n\n", $template->output;
    
  6. or download this
    #!/Perl/bin/perl
    
    use warnings;
    ...
    $template->param(test_post => $q->param('test_post'));
    
    print "Content-Type: text/html\n\n", $template->output;
    
  7. or download this
    <html>
        <head>
            <title>One</title>
    ...
            </form>
        </body>
    </html>
    
  8. or download this
    <html>
        <head>
            <title>Two</title>
    ...
            <p><a href='one.pl'>Click to go back to one</a></p>
        </body>
    </html>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://748939]
Approved by zwon
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-11-22 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (118 votes), past polls