As myocom pointed out, '?node=somethinghere' is a CGI query using method GET. It doesn't necessarily come from an HTML form, anchors and links can be written with such queries in their href.

The CGI script's basic job is to examine the query parameters, decide what to do, and print the correct HTML response page. Each of those stages can depend on the name/value pairs passed to the script.

A few tips:

  1. use warnings;
  2. use strict;
  3. use CGI;
  4. Taint mode should be on.
  5. Know what you expect to see in parameters, and ignore anything unexpected.

1, 2, and 4 are there to drive you nuts, but it's worth it. They go a long way toward assuring stable and correct behavior. 3 is a convenience which is superior to home-rolled ways of accessing CGI parameters. 5 works with taint mode to prevent clients from persuading your script to do unexpected things.

Good luck, have fun.

After Compline,
Zaxo


In reply to Re: i dont know exactly what its called by Zaxo
in thread What is a Query String in a URL by Pyro3k

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.