Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Mixing POST and GET with CGI::Application

by c4onastick (Friar)
on Mar 06, 2009 at 18:58 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-03-29 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found