Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: info from one page to another.

by lolindrath (Scribe)
on Dec 31, 2000 at 21:40 UTC ( #49111=note: print w/ replies, xml ) Need Help??


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=--


Comment on Re: info from one page to another.
Download Code
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=--

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-09-30 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (385 votes), past polls