Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
addElement(new XoopsFormText('x', "phone1_ext", 15, 100, $_POST['phone1_ext']));[/code][/quote]" />

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

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!

le="color: #000000"><?php $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']));

Who's Online

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


Members: 0


Guests: 166


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits