[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03743] CGI module and form fields values

From: Jilani Khaldi <jilanik@...>
Date: 2000-07-02 10:55:09 UTC
List: ruby-talk #3743
Hi Ruby's!
I have a html form with these fields in this order:
1- textbox (name)
2- edit text (birth date)
3- check box (checked)
4- check box (checked)
5- check box (checked)
6- radiobutton (checked)
7- radiobox (not checked)
8- radiobox (not checked)
9- scrollable textbox (comment)

running this code:
...
cgi = CGI.new
h = cgi.params
h.each_key {|key| print key, "<br>"}
...
in output, I see the fields key in this order:
3- check box (checked)
2- edit text (birth date)
9- scrollable textbox
4- check box (checked)
6- radiobutton (checked)
5- check box (checked)
(?) SubmitButton
1- textbox (name)

Is it normal?
How to get in output the fields and their value in the same order as
they are in the form?

Thank you.

--
jilani
__________________________________________________
http://space.tin.it/scuola/jkhaldi



In This Thread

Prev Next