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 ( [id://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=--

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found