well.. it seems that the server is f**ing with me... I don't know what is going on...
I tried to debug the code by using this code
foreach $key (sort(keys %ENV)) { print "$key = $ENV{$key}<br>\n"; }
so I got this output:
DOCUMENT_ROOT = /data1/virtualave.net/lezar GATEWAY_INTERFACE = CGI/1.1 HTTP_ACCEPT = */* HTTP_ACCEPT_ENCODING = gzip, deflate HTTP_ACCEPT_LANGUAGE = en-us HTTP_CACHE_CONTROL = max-stale=0 HTTP_COOKIE = p_go2id=UE5dCG1Pd76kk/ZxDmBBgw HTTP_HOST = lezar.virtualave.net HTTP_REFERER = http://lezar.org/index2.cgi?Front HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigEx +t) PATH = /usr/local/bin:/usr/bin:/bin QUERY_STRING = REMOTE_ADDR = 209.239.68.247 REMOTE_PORT = 34052 REQUEST_METHOD = GET REQUEST_URI = /index2.cgi SCRIPT_FILENAME = /data1/va/lezar/index2.cgi SCRIPT_NAME = /index2.cgi SCRIPT_URI = http://lezar.virtualave.net/index2.cgi SCRIPT_URL = /index2.cgi SERVER_ADMIN = webmaster@virtualave.net SERVER_NAME = lezar.virtualave.net SERVER_PORT = 80 SERVER_PROTOCOL = HTTP/1.0 SERVER_SOFTWARE = Apache/1.3.6 (Unix)
as you can see, the QUERY_STRING appears blank... I don't know what is really going on, it seems like something is wrong with Virtual Avenue
so before I go on and work on simplifying the code, I have to see what the heck is going on with the server, and their customer support is not quite satisfying

STILL STUCK
Chady
http://chady.net

In reply to Still Stuck by Chady
in thread Stuck by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.