Posted by kunal981 on March 8, 2008 at 10:41am
Hello,
I am new to Drupal , i am creating a new module in which i had a registration form created. When i insert form elements like the textbox, checkbox or radio buttons they all come in the next row. No two form elements come in same column. I am really confused.
Please help me to make to form elements come in single column.
Thanks
Comments
HiYou can use prefix and
Hi
You can use prefix and suffix .
For example
$form['serial'] = array(
'#type' => 'textfield',
'#title' => t('serial number'),
'#prefix' => '<table><tr><td>',
'#suffix' => '</td>',
);
$form['submit'] = array (
'#type' => 'submit',
'#value' => t('Submit'),
'#prefix' => '<td>',
'#suffix' => '</td></tr></table>',
);
Thanks