[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

CGI question

JoeyP

4/3/2007 12:52:00 PM

Hello,
I am using the CGI class to create a web page.
I need a drop down list. I have a formatted string in a DB table for
the values.
How can I access the variable?

cgi.option('value'=>'pathway') { "KEGG/PATHWAY" } +
cgi.option('value'=>'brite') { "KEGG/BRITE" } +
cgi.option('value'=>'genes') { "KEGG/GENES" } +


I'm trying this:

cgi.option( myformattedstring) { " some text"}+


The problem is that I cannot use 'myformattedstring' variable.

I declare it like this:
myformattedstring << " \'value\'=>\'red\' "

Any thoughts on how I can get this working?

Thanks in advance