Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Change html_radios

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
Serzhik
Smarty Rookie


Joined: 12 Mar 2004
Posts: 18
Location: Kyiv, Ukraine

PostPosted: Fri Mar 12, 2004 1:48 pm    Post subject: Change html_radios Reply with quote

When I use html_radios I have 1 extra separator at and... It looks like
Code:

index.php:

require('Smarty.class.php');
$smarty = new Smarty;
$smarty->assign('values', array("0","1"));
$smarty->assign('output', array('No','Yes'));
$smarty->display('index.tpl');


index.tpl:

{html_radios name=somename values=$values output=$output separator="<br />&" labels=no}


OUTPUT:

<input type="radio" name="somename" value="0">No<br />&
<input type="radio" name="somename" value="1">Yes<br />&


So, I think that you must change the function to delete last separator... Cause page looks not so good as I want..

P.S. Sorry for my English...
_________________
http://party.com.ua
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP