Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: script problems1

by rchiav (Deacon)
on Apr 04, 2001 at 17:21 UTC ( #69647=note: print w/ replies, xml ) Need Help??


in reply to script problems1

The first thing that I notice is that you don't have <FORM></FORM> tags listed here. If they're there, good.. but if not, that is probably part of your problem.

You also aren't setting the <option> "value". The text that is shown isn't actually submitted. There's a hidden value that is actually submitted. It can be the same thing as the text shown if you like...

print "<OPTION value="0">0</OPTION>\n"; print "<OPTION value="1">1</OPTION>\n"; print "<OPTION value="2">2</OPTION>\n"; print "<OPTION value="3">3</OPTION>\n"; print "<OPTION value="4">4</OPTION>\n"; print "<OPTION value="5">5</OPTION>\n"; print "<OPTION value="6">6</OPTION>\n";

Also as a style tip, I'd personally put all the values in an array and then iterate through them. It will make it a lot easier to update... instead of writing out each line. Hope this helps.. Rich


Comment on Re: script problems1
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-12-19 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (91 votes), past polls