Hello, got this code from a thread here,
I was wondering how you can display the options in table rows and not new line or break. Thanks
Someone kindly assist. got stuck here
- Code: Select all
<cms:set page_to_redirect=k_page_link />
<cms:pages masterpage='countdwn1.php' limit='1' >
<cms:each poll_options sep='\n'>
<cms:if k_count lt '10' >
<cms:php>global $CTX; $CTX->set( 'item',str_replace('|', '\\|', $CTX->get('item')) );</cms:php>
<cms:set my_poll_options="<cms:concat my_poll_options '||' item '=' k_count />" scope='global'/>
</cms:if>
</cms:each>
<cms:if "<cms:not_empty my_poll_options />" >
<cms:form
masterpage=k_template_name
mode='edit'
page_id=k_page_id
anchor='0'
method='post'
>
<cms:if k_success>
<cms:dump />
<cms:db_persist_form
test_poll=frm_poll
/>
<cms:redirect page_to_redirect />
</cms:if>
<cms:input type='radio' name='poll' opt_values=my_poll_options />
<input type="submit" name="submit" value="Vote"/>
</cms:form>
</cms:if>
</cms:pages>
I was wondering how you can display the options in table rows and not new line or break. Thanks
Someone kindly assist. got stuck here