Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: question for the monks

by aardvark (Pilgrim)
on Mar 12, 2001 at 02:20 UTC ( #63673=note: print w/ replies, xml ) Need Help??


in reply to How to get CGI input parameters (was: question for the monks)

It's hard to tell exactly what you have going on without some sample code. But it sounds like you want to use CGI parameters to pass around some info. Here is some info on using parameters

in page 2 form: <form action="page_1.cgi" method="post"> <input type="hidden" name="info" value="$info_from_database">
in page 1:
my $info = $cgi->param('info')
Then in you can test and see if there is any data in the $info parameter and print it.
If you want it in a textfield then try this: <input type="text" name="textfield_1" value="$info">
You may also want to consider using a dispatch table as outlined by chipmonk here or by japhy here. A dispatch table gives a 'cleaner' way to program multi-page CGI scripts. Good Luck.

Get Strong Together!!


Comment on Re: question for the monks
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2014-07-11 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (219 votes), past polls