tcf03 has asked for the wisdom of the Perl Monks concerning the following question:

I have a script with the following code
print start_form(-method=>"post", -action=>"$URL&TOQUEUE=$toq&JOBID=$jid", -enctype=>"application/x-www-form-urlencoded" +);
when I look at the source that my browser gets, I get the following, which are the original params passed to the script. Im not sure what im doing wrong here, Ive read the cgi documentation and its working fine elsewhere in the script - so Im thinking its the data being passed. Any ideas?
<form method="post" action="/cgi-bin/queue.cgi?queue=R_NETADMIN&amp;su +bsys=cups&amp;remote=Local&amp;server=rlinux1&amp;qstat=enabled&amp;p +stat=disabled" enctype="application/x-www-form-urlencoded">
Im not getting any errors via command line either.

Thanks in advance for any direction you can point me in
ted


UPDATE
how can I pass variable data from a textfield back? Without using action= ?

20050328 Edit by castaway: Changed title from 'submitting params vi cgi'

Replies are listed 'Best First'.
Re: submitting params via cgi
by JediWizard (Deacon) on Mar 22, 2005 at 19:59 UTC

    I'm not sure why you are putting parameters in the "action" url of your form. Wouldn't it be better to simply put them in "hidden" fields within the form?

    <form method="post" action="/cgi-bin/queue.cgi" enctype="application/x +-www-form-urlencoded"> <input type="hidden" name="queue" value="R_NETADMIN" /> </form>

    A truely compassionate attitude towards other does not change, even if they behave negatively or hurt you

    —His Holiness, The Dalai Lama

      Yeah... in my experience putting params in the action field of a form just plain doesn't work.

                      - Ant
                      - Some of my best work - (1 2 3)

        GET paramaters in the action attribute of a form with a method of POST work just dandy, but some really stupid perl-CGI modules won't read them (I'm not sure CGI.pm even reads them). However the query string for the action attribute is ignored completely if you use a method of GET.