Good advice @ig, and thank you very much for the reply.
What I actually have, is a very large script that provides every option DNS queries permit.
I built, and tested it as CLI (at the console/term). Now that it all works at the term, I
want to incorporate a form field where the
(@ARGV) is. Since the whole thing is so large, I simply posted
one of the queries as an example. I have already finished all of the web based stuff, providing each query option as a
<select>
<option> </option>
</select>
Then providing additional options as checkboxes, or radio.
so: the example I posted here appears as:
<select>
<option>MX</option>
</select>
the additional options are A, AAA, HINFO, IP6, TXT, etc...
What I
do want to do, is provide an empty form input field that allows the entry of a domain name to query those options for. meaning; replace the
(@ARGV) I have now, with a form input field. As it sits now (without form fielsd(s), I can query the form via:
http://mydomain.tld/dnsdig.cgi?somedomain.tld
and it returns the MX records (using the example above with the
(@ARGV).
But I don't want the web clients location: to see, or be able to manipulate the query string -- hence the desire to put the form fields within the script itself, and my choice of using the POST method.
I hope that helps clear things up a bit, and thanks again for your thoughtful reply.
--Chris
#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.