1
zer0fill
*RESOLVED* XoopsThemeForm making elements side by side?
  • 2004/7/8 2:42

  • zer0fill

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/12/2


I remember being able to place two form elements next to each other on the same row but can't figure out how it was done. For example, I have a row with the telephone number and the extension.

I thought it was done by putting an array of elements in the $form->addElement(array($phone1_text,$phone1_ext_text), true); function but that didn't turn out too well.

--------------

Found it!

$phone1_tray= new XoopsFormElementTray('Phone 1');
$phone1_tray->addElement(new XoopsFormText('', "phone1", 35, 100, $_POST['phone1']));
$phone1_tray->addElement(new XoopsFormText('x', "phone1_ext", 15, 100, $_POST['phone1_ext']));