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"35100$_POST['phone1']));
$phone1_tray->addElement(new XoopsFormText('x'"phone1_ext"15100$_POST['phone1_ext']));

Login

Who's Online

122 user(s) are online (87 user(s) are browsing Support Forums)


Members: 0


Guests: 122


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits