I'm writing a python-cgi script to setup a Hadoop cluster.
I want to create an HTML select dropdown where the options are taken from a python list. Is this possible??
I've looked around a lot. Couldn't find any proper answer to this.
So far, I'm only using a single .cgi file which has both the html code as well as the python code in it.
I really need to find an answer to this. I'd appreciate any help at all.
Thanks.
The options i need are IP addresses. I have a function which stores the IP addresses into a python list.
I want to create an HTML select dropdown where the options are taken from a python list. Is this possible??
I've looked around a lot. Couldn't find any proper answer to this.
So far, I'm only using a single .cgi file which has both the html code as well as the python code in it.
I really need to find an answer to this. I'd appreciate any help at all.
Thanks.
The options i need are IP addresses. I have a function which stores the IP addresses into a python list.