Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(bbq) RE: (ar0n) RE: Unwanted CGI

by BBQ (Curate)
on Oct 06, 2000 at 17:41 UTC ( [id://35573]=note: print w/replies, xml ) Need Help??


in reply to (ar0n) RE: Unwanted CGI
in thread Unwanted CGI "Submit" Parameter

Hmmm... that's not entirely true. There's a big difference in these two submit buttons:
<input type=Submit value="This doesn't have a value"> <input type=Submit name=Submit value="This one has a value">
In other words, if you don't provide a name, there is nothing to associate the value to. Am I missing out on something important or has everyone gone gaga? :) Also, on a side note, I'd drop cgi-lib.pl and start using CGI.pm with the compatibility mode. Ie:
use CGI; CGI::ReadParse(*in);
My R$0.02 (its less than two cents when you convert it to US$)

#!/home/bbq/bin/perl
# Trust no1!

Replies are listed 'Best First'.
RE: (bbq) RE: (ar0n) RE: Unwanted CGI
by Fastolfe (Vicar) on Oct 06, 2000 at 19:07 UTC
    You are totally correct.. In my experience I generally don't see a submit input item with a name attribute unless the coder is interested in the value of the submit button..
    <input type='submit' name='submit' value='Next'> <input type='submit' name='submit' value='Previous'>
    Of course you can make it whatever name you want, but if you don't particularly care what submit button they hit, just don't provide a name attribute:
    <input type='submit' value='Save'>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://35573]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found