in reply to Re: How to convert an @ARGV to form based input?
in thread How to convert an @ARGV to form based input?
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
Then providing additional options as checkboxes, or radio.
so: the example I posted here appears as:
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
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to convert an @ARGV to form based input?
by Anonymous Monk on Aug 21, 2012 at 09:00 UTC | |
by taint (Chaplain) on Aug 21, 2012 at 09:10 UTC | |
by aaron_baugher (Curate) on Aug 21, 2012 at 09:55 UTC | |
by Anonymous Monk on Aug 21, 2012 at 09:39 UTC | |
Re^3: How to convert an @ARGV to form based input?
by ig (Vicar) on Aug 21, 2012 at 14:02 UTC |
In Section
Seekers of Perl Wisdom