<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Passing variables to PERL CGI - Comments</title>
 <link>http://community.activestate.com/forum-topic/passing-variables-perl-cgi</link>
 <description>Comments for &quot;Passing variables to PERL CGI&quot;</description>
 <language>en</language>
<item>
 <title>I think you mean form</title>
 <link>http://community.activestate.com/forum-topic/passing-variables-perl-cgi#comment-4551</link>
 <description>&lt;p&gt;I think you mean form parameters correct me if I&#039;m wrong&lt;/p&gt;
&lt;p&gt;#!C:\Perl\bin\perl.exe -w&lt;br /&gt;
use strict;&lt;br /&gt;
use CGI &#039;:standard&#039;;&lt;/p&gt;
&lt;p&gt;#Set up some variables&lt;br /&gt;
my($input1, $input2, $input3);&lt;/p&gt;
&lt;p&gt;#Get param values&lt;br /&gt;
my $input1 = param(&#039;formInput1&#039;); #Where formInput1 is the name of the form field&lt;br /&gt;
my $input2 = param(&#039;formInput2&#039;);&lt;br /&gt;
my $input3 = param(&#039;formInput3&#039;);&lt;/p&gt;
&lt;p&gt;print &quot;$input1&quot;;&lt;br /&gt;
print &quot;$input2&quot;;&lt;br /&gt;
print &quot;$input3&quot;;&lt;/p&gt;
&lt;p&gt;Try these tutorials&lt;br /&gt;
&lt;a href=&quot;http://www.tizag.com/perlT/&quot; title=&quot;http://www.tizag.com/perlT/&quot;&gt;http://www.tizag.com/perlT/&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cbkihong.com/download/perltut.pdf&quot; title=&quot;http://www.cbkihong.com/download/perltut.pdf&quot;&gt;http://www.cbkihong.com/download/perltut.pdf&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cgi101.com/book/&quot; title=&quot;http://www.cgi101.com/book/&quot;&gt;http://www.cgi101.com/book/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope that helps&lt;/p&gt;
</description>
 <pubDate>Tue, 11 Mar 2008 20:00:19 -0700</pubDate>
 <dc:creator>maldrac</dc:creator>
 <guid isPermaLink="false">comment 4551 at http://community.activestate.com</guid>
</item>
<item>
 <title>http://www.cgi101.com/learn/</title>
 <link>http://community.activestate.com/forum-topic/passing-variables-perl-cgi#comment-4427</link>
 <description>&lt;pre class=&quot;geshifilter&quot;&gt;http://www.cgi101.com/learn/&lt;/pre&gt;</description>
 <pubDate>Wed, 05 Mar 2008 06:39:04 -0800</pubDate>
 <dc:creator>MarcZ</dc:creator>
 <guid isPermaLink="false">comment 4427 at http://community.activestate.com</guid>
</item>
<item>
 <title>Passing variables to PERL CGI</title>
 <link>http://community.activestate.com/forum-topic/passing-variables-perl-cgi</link>
 <description>&lt;p&gt;What is the PERL code that allows a PERL CGI to receive variables&lt;br /&gt;
from an HTTP form? I think I have the HTTP code that sends the variable.&lt;/p&gt;
&lt;p&gt;I found the below code on the Internet, but they stop my CGI program&lt;br /&gt;
from executing:&lt;/p&gt;
&lt;p&gt;require &quot;cgi-lib.pl&quot;;&lt;br /&gt;
&amp;amp;ReadParse(*input);&lt;br /&gt;
$input{&#039;myfield&#039;}; &lt;/p&gt;
&lt;p&gt;Is there a good web page that answers this question?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/passing-variables-perl-cgi#comments</comments>
 <category domain="http://community.activestate.com/forums/perl-discussion-0">Perl discussion</category>
 <category domain="http://community.activestate.com/os/windows">Windows</category>
 <pubDate>Wed, 27 Feb 2008 05:15:26 -0800</pubDate>
 <dc:creator>mralbert</dc:creator>
 <guid isPermaLink="false">1974 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
