Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am a beginner to perl but have come across a problem.
I would like to pass variables back to the same script without putting them in hidden fields. Is this possible.
The code I tried is below - can anyone advise me?
Thanks P#!/usr/local/bin/perl ########################## use CGI qw (:standard); use CGI::Carp qw(fatalsToBrowser); $q = new CGI; print $q->header; $action=$q->param(action); print $q->start_html( -TITLE=>'test,' -BGCOLOR=>'#FFFFFF'); print $q->startform('post', 'test.cgi'); print "$action"; $q->param(action,'to_be_passed_back'); $action=$q->param(action); print "$action"; print $q->submit(-name=>'submit', -value=>'submit'); print $q->endform; print $q->end_html;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Passing things back to the script! Novice needs help
by btrott (Parson) on Feb 15, 2000 at 00:14 UTC | |
Re: Passing things back to the script! Novice needs help
by Crulx (Monk) on Feb 15, 2000 at 03:37 UTC | |
Re: Passing things back to the script! Novice needs help
by JEB (Novice) on Feb 15, 2000 at 05:58 UTC |
Back to
Seekers of Perl Wisdom