---
name: "CGI.radio"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI.radio"
---

# CGI.radio(3kaya)

Make a radio button.

## NAME

CGI::radio - Make a radio button.

## SYNOPSIS

**HTML radio(** *String name, String val, Bool set=false, String id="", String extra=""* **)**

## ARGUMENTS

**name** The name of the radio button. Only one radio button with a given name may be selected at once

**val** The value of the radio button.

**set** If this is true, the radio button will start checked. Browser behaviour is undefined unless exactly one radio button out of each set begins checked.

## DESCRIPTION

Returns the HTML for a radio button. Note that neither the *name* nor the *value* parameter is escaped by this function, so you must ensure that neither contains a '"' character yourself.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
