use CGI; $form = new CGI; The example in my first email had an error... (this is a short version of an email I sent back to David directly)...
"Nazary, David" wrote: > Jim, > > In a web page I have a list of names (ClearCase VOBs) that I like to link to > a single script. When I click on any one of those names they should become > an argument to that script. The script will then fetch certain data (Epoch > numbers) for that name. > > I think what you and Rasnita suggested may very well be the solution but now > I have to install the package "new" as I got some error to that effect. > > Thanks again. > David > > -----Original Message----- > From: Jim Lundeen [mailto:[EMAIL PROTECTED]] > Sent: Sunday, September 01, 2002 8:44 PM > To: Nazary, David > Subject: Re: How to make a hyperlink an argument for a CGI script > > i'm not sure that i understand what you are asking. are you asking how to > pass field values in to a perl script from a text link? > > if so, > > <a href="script.pl?name=value&name2=value2">Foo</a> > > Within the scipt, > > use CGI; > $form = new->CGI; > > $field1 = $form->param("field1"); > $field2 = $form->param("field2"); > > etc... > > "Nazary, David" wrote: > > > Hi, > > > > In the following web page how can I make "foo" to become an argument to > > "cgi-bin\script.pl" script when I click on "foo"? > > > > <body> > > > > <p><a href="cgi-bin/script.pl">foo</a></p> > > > > </body> > > > > Currently the script takes "" as an argument when I click on "foo". Any > > suggestion are appreciated. > > > > Thanks > > David Nazary > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]