peterbrandt has asked for the wisdom of the Perl Monks concerning the following question:
##Program: beta.pl use CGI qw(:standard); $ENV{'PATH'} = '/usr/bin:/s/sirsi/Unicorn/Bin'; $ENV{'UPATH'} = '/s/si +rsi/Unicorn/Config/upath'; print header, start_html('Simple Example'), h1('Simple Example'), start_form, "What is your Library Card Number? ",textfield('libcardno'),p, submit, end_form, hr; if (param()) { $user_id = param("libcardno"); print "Your card is: ",em(param('libcardno')),p, $dbpin = `echo $user_id | /s/sirsi/Unicorn/Bin/seluser -iB -ow 2>/dev/ +null`; print "Your pin is: $dbpin", hr; print "<BODY>\n"; print "<HR>\n"; print "<H3>Environment Variables</H3>\n"; print "<UL>\n"; foreach $key (keys %ENV) { print "<LI>$key = $ENV{$key}\n"; } print "</UL>\n"; print "</BODY>\n"; } end_html();
20090326 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing user input to script
by Fletch (Bishop) on Mar 26, 2009 at 17:46 UTC | |
|
Re: passing user input to script
by linuxer (Curate) on Mar 26, 2009 at 16:26 UTC | |
|
Re: passing user input to script
by Anonymous Monk on Oct 16, 2011 at 13:15 UTC | |
by Anonymous Monk on Oct 17, 2011 at 06:24 UTC | |
by jdporter (Paladin) on Oct 17, 2011 at 16:19 UTC |