Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-10-22 14:13 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.