diff --git a/docs/en/designers/language-custom-functions/language-function-html-radios.xml b/docs/en/designers/language-custom-functions/language-function-html-radios.xml index ef2c6de7..e09b200d 100644 --- a/docs/en/designers/language-custom-functions/language-function-html-radios.xml +++ b/docs/en/designers/language-custom-functions/language-function-html-radios.xml @@ -99,10 +99,10 @@ index.php: require('Smarty.class.php'); $smarty = new Smarty; $smarty->assign('cust_radios', array( - 1001 => 'Joe Schmoe', - 1002 => 'Jack Smith', - 1003 => 'Jane Johnson', - 1004 => 'Charlie Brown')); + 1000 => 'Joe Schmoe', + 1001 => 'Jack Smith', + 1002 => 'Jane Johnson', + 1003 => 'Charlie Brown')); $smarty->assign('customer_id', 1001); $smarty->display('index.tpl'); @@ -114,10 +114,10 @@ index.tpl: OUTPUT: (both examples) -<input type="radio" name="id[]" value="1000">Joe Schmoe<br /> -<input type="radio" name="id[]" value="1001" checked="checked"><br /> -<input type="radio" name="id[]" value="1002">Jane Johnson<br /> -<input type="radio" name="id[]" value="1003">Charlie Brown<br /> +<input type="radio" name="id" value="1000">Joe Schmoe<br /> +<input type="radio" name="id" value="1001" checked="checked">Jack Smith<br /> +<input type="radio" name="id" value="1002">Jane Johnson<br /> +<input type="radio" name="id" value="1003">Charlie Brown<br />