param() returns the POST parameters when a form is POSTed. Otherwise it returns the query string parameters (the part of the URL after the "?").
The query string parameters are always available via url_param():
use CGI qw/:standard/;
my $post_tomato = param('tomato');
my $get_tomato = url_param('tomato');
|
|
| Contents | Next |