|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
ferre Smarty Rookie
Joined: 07 Jul 2003 Posts: 28
|
Posted: Wed Jul 16, 2003 4:10 am Post subject: html_radios wrong |
|
|
plz, help me to chk this .
$smarty->assign(array(
'STATE' =>file("inc/state.inc"),
'SEX' =>file("inc/sex.inc")
));
sex.inc
-------------------------------------------
girl
man
try.tpl
-------------------------------------------
{html_radios name=sex values="$SEX" checked="$SE_MEM.4" output="$SEX" separator=""}
output
-------------------------------------------
<input type="radio" name="sex" value="girl" />girl
plz,tell me how to make it's show below
-------------------------------------------
<input type="radio" name="sex" value="0" />girl |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed Jul 16, 2003 7:48 am Post subject: |
|
|
{html_radios name=sex options=$SEX checked=$SE_MEM.4 separator=""}
options takes the array-keys as html-radio-values and the array-values as html-radio-output. |
|
Back to top |
|
ferre Smarty Rookie
Joined: 07 Jul 2003 Posts: 28
|
Posted: Wed Jul 16, 2003 3:25 pm Post subject: |
|
|
thz a lot |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|