Forums

PHP

This topic is locked

Dynamic Elements

Posted 06 Dec 2001 04:51:35
1
has voted
06 Dec 2001 04:51:35 scat scat posted:
Hi.....

I have created a List/Menu with a label and a value from mysql... What I want to know is, am I able to have two or more fields as the label???

Thanks in advance.....



Replies

Replied 07 Dec 2001 11:34:06
07 Dec 2001 11:34:06 Tim Green replied:
Short answer is No.

Long answer is Yes, but you have to manually code this, and here's how:-

<select name="tester">
<option value="<?php echo $RecordsetName->Fields("FieldName"?>"><?php echo $RecordsetName->Fields("Label1Field" . $RecordsetName->Fields("Label2Field"?></option>
</select>

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Reply to this topic