Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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
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=--

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 having an uproarious good time at the Monastery: (5)
As of 2015-07-28 02:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls