Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to grab passed value in the new page 1

Status
Not open for further replies.

JASONE25

Technical User
Jun 23, 2005
54
NL
Hi every body. could any one show me how to grab the passed value . for example if i pass a value like the link below . how i can grap and print it in the next page.Thanks

 
This is all dealt with in the tutorial I linked to in your other thread - Lesson Two covers this - it's SERIOUSLY worth the read!

Here's the short version:
Code:
#!/usr/bin/perl -w
use strict;
use CGI;
my $q = new CGI;

my $name = $q->param( 'name' );
print $q->header, $name, "\n";

Save that as `page.pl' and call it as you're doing above. It'll print `2' in the browser.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top