<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001136" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001136</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004958</link>
    <description> &lt;p&gt;Aha! Thanks alot everyone...&lt;/p&gt;
&lt;p&gt;ORPHEUS: did you get my e-mail? what&#039;s your ICQ or AIM address?&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Critiquing over 1000 sites on the Internet today...&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Jun 2000 00:00:00 +0000</pubDate>
 <dc:creator>Justin S</dc:creator>
 <guid isPermaLink="false">comment 1004958 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004957</link>
    <description> &lt;p&gt;erp... major typo&lt;/p&gt;
&lt;p&gt;replace 1 with $1&lt;/p&gt;
&lt;p&gt;THAT will work. promise  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/smile.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 05 Jun 2000 23:46:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1004957 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004956</link>
    <description> &lt;p&gt;Because &lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;######################################################################### PARSE URL DATA
$string = $ENV{&#039;QUERY_STRING&#039;};
$string =~ m/action=(.+)/sogi;
$action = 1;[/code] sets $action equal to 1, not to the action, and you&#039;re checking $action later for &#039;showpost&#039; and such.

[This message has been edited by roBofh (edited 05 June 2000).] &lt;/pre&gt;</description>
     <pubDate>Mon, 05 Jun 2000 19:37:00 +0000</pubDate>
 <dc:creator>roBofh</dc:creator>
 <guid isPermaLink="false">comment 1004956 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004955</link>
    <description> &lt;p&gt;Hmm, it doesn&#039;t seem to work Orpheus. Here&#039;s the full script. Please tell me whats wrong...&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
#!/usr/bin/perl

#######################################################################
## POST.CGI
## Justin Stayton
## Copyright (c) 2000 Justin Stayton
#######################################################################

#######################################################################
## VARIABLES
#######################################################################

#######################################################################
## CODE
#######################################################################

## PARSE URL DATA
$string = $ENV{&#039;QUERY_STRING&#039;};
$string =~ m/action=(.+)/sogi;
$action = 1;

## USE THE PARSED DATA AND SHOW INFORMATION
if($action eq &quot;showpost&quot;) { &amp;showpost; }
elsif($action eq &quot;showreply&quot;) { &amp;showreply; }
elsif($action eq &quot;savepost&quot;) { &amp;savepost; }
elsif($action eq &quot;savereply&quot;) { &amp;savereply; }
else { &amp;showerror; }

## SHOW POST PAGE
sub showpost {
   print &quot;this is a test 1&quot;;
   exit;
}

## SHOW REPLY PAGE
sub showreply {
   print &quot;this is a test 2&quot;;
   exit;
}

## SAVE POST CODE
sub savepost {
   print &quot;this is a test 3&quot;;
   exit;
}

## SAVE REPLY CODE
sub savereply {
   print &quot;this is a test 4&quot;;
   exit;
}

## SHOW ERROR PAGE
sub showerror {
   print &quot;this is a test 5&quot;;
   exit;
}

#######################################################################
## END OF POST.CGI
#######################################################################
[/code]

------------------
Critiquing over 1000 sites on the Internet today... &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 05 Jun 2000 19:22:00 +0000</pubDate>
 <dc:creator>Justin S</dc:creator>
 <guid isPermaLink="false">comment 1004955 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004954</link>
    <description> &lt;p&gt;Ok, I think I understand your problem so see if this will do it for you.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
$string = $ENV{&#039;QUERY_STRING&#039;};
$string =~ m/action=(.+)/sogi;
$action = 1;
print $action;
[/code] &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 05 Jun 2000 18:51:00 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1004954 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/query-string-help#comment-1004953</link>
    <description> &lt;p&gt;Hi justin.&lt;/p&gt;
&lt;p&gt;Its real easy using the CGI module. Take a look. It takes care of QUERY_STRING/CONTENT_LENGTH.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;code:&lt;/p&gt;
&lt;pre&gt;
use CGI qw/:standard/;
$action = param(&#039;action&#039;);
[/code]

Hope that helps,

Arpith



------------------
&lt;a href=&quot;http://www.arpith.com&quot; class=&quot;bb-url&quot;&gt;Arpith.com&lt;/a&gt; &lt;/pre&gt;&lt;/blockquote&gt;</description>
     <pubDate>Mon, 05 Jun 2000 18:37:00 +0000</pubDate>
 <dc:creator>arpith</dc:creator>
 <guid isPermaLink="false">comment 1004953 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
