CGI question

J

JoeyP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,938
Members
47,473
Latest member
pioneertraining

Latest Threads

Top