QUOTE
<p><select class=select size="120" name="VwRc" style="width: 780; height: 250; FONT-FAMILY: Lucida Console, Courier New; FONT-SIZE: x-small;" LANGUAGE="javascript" onchange="return VwRc_onchange()">
<? while ($rsTable=mysql_fetch_array($rs))
echo "<option>".AppendSpace($rsTable["ActId"],8), AppendSpace($rsTable["ActDate"],12) ?>
</option>
</select>
<? while ($rsTable=mysql_fetch_array($rs))
echo "<option>".AppendSpace($rsTable["ActId"],8), AppendSpace($rsTable["ActDate"],12) ?>
</option>
</select>
this is my code. the data displays on my select box properly. as you will notice i am putting the data from 2 fields in my table in a row of my select box. i have in my form 2 textbox (ID, Date) to check if the data selected from the select box is being displayed. however, if I select something there is no data being displayed in my 2 textbox. I think the option should have a value such as echo "<option value=(this is where my problem starts)>".AppendSpace...
i really don't know what to do anymore. pls help me.
I also tried but nothing is displayed in my selectbox:
QUOTE
<option value="<? echo $rsTable['ActId'];?>,<? echo $rsTable['ActDate'];?>"> <?echo AppendSpace($rsTable["ActId"],8)?> <? echo AppendSpace($rsTable["ActDate"],12)?>
what should be my code then? :confused:
hope someone here could help me.