mi problema es que cuando paso el valor del combo por el formulario pasa bien pero aparte de ese valor nesesito otro... quisiera saber si hay alguna manera de darle 2 valores a un combo
Código PHP:
<?php
while($my_categoria=mysql_fetch_array($myctg)){
$x++;
?>
<tr>
<td width="350"><?php print $my_categoria['bb_categoria'] ?></td>
<td width="150">
<select name="categoria[<?php print $my_categoria['bb_id']; ?>]" onChange="Suma(this.value,this.value,'r_<?php print $my_categoria['bb_id']; ?>'),copiaValor(this,'r_<?php print $my_categoria['bb_id']; ?>');">
<option value="0" selected> [ Seleccionar ] </option>
<?php
$myprt=mysql_query("select * from bb_partes where id_categoria='$my_categoria[bb_id]'") or die("Hubo un error en la consulta");
while($my_part=mysql_fetch_array($myprt)){
$x++;
?>
<option value="<?php print $my_part['precio']; ?>"><?php print $my_part['name']; ?></option>
<?php
}
?>
</select>
</td>
<td width="100"><input type="text" id="r_<?php print $my_categoria['bb_id']; ?>" name="t1"></td>
</tr>
<?php
}
?>
espero me puedan ayudar..
un saludo...