Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Basic question: ui_radio_selector?

2012-03-23
2013-05-22
  • Trying to get a handle on using the API. and ui_radio_selector specifically. I want to have 3 radio buttons. When one radio button is selected the corresponding block of html code appears. I have a good understanding of perl and html forms but not sure of how to set up the array for what this is asking? An example would be great.

    ui_radio_selector(&opts, name, selected)

    Returns HTML for a set of radio buttons, each of which shows a different block of HTML when selected. The parameters are :

    opts - An array ref to arrays containing 
    name - HTML name for the radio buttons
    selected - Value for the initially selected button.

    Not sure of the exact syntax - an example would be great. Tried to find something in my existing webmin folder but no luck….