Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Single CGI script for submission,processing and displaying of results

by tame1 (Pilgrim)
on Feb 22, 2001 at 21:23 UTC ( #60256=note: print w/replies, xml ) Need Help??


in reply to Single CGI script for submission,processing and displaying of results

Hopefully this is what you mean.

use CGI; my $query = new CGI; my $name = $query->param("name"); if (!$name) { # test for a form field filled in &show_form; # if no, show form. } elsif { &process_data; # otherwise, process form data &show_result; } exit(0);
Does that help?

What does this little button do . .<Click>; "USER HAS SIGNED OFF FOR THE DAY"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://60256]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-11-30 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?