http://www.perlmonks.org?node_id=49111


in reply to info from one page to another.

This is what I usually do to pass additional information to the script. This is usually stuff that a user entered before (like user name and password ).
<form method="post" action="./yourscript.pl"> <input type="hidden" name="cinfo" value=$cinfo> </form>

Hope this helps.

--=Lolindrath=--

Replies are listed 'Best First'.
Re: Re: info from one page to another.
by Granite (Initiate) on Dec 31, 2000 at 21:53 UTC
    Thanks.

    So how would I get this to come up on the next page? Would it just be:

    print "$cinfo";???
      Ok, now I see what you're asking.
      <form method="post" action="./yourscript.pl"> <input type="hidden" name="cinfo" value=$cinfo> <input type="Submit"> </form>
      Ok, when you hit the submit button in the browser then you get the values you sent by doing this:
      # Look this Package up on Perlmonks to learn more about it use CGI qw/:standard/; my $Query = new CGI; # Get the parameter from the Query string by the name of # the field my $cinfo = $Query->param('cinfo'); print $Query->header(); print $cinfo;


      --=Lolindrath=--