Page 1 of 1

add a new variable to existing code?

Posted: Mon Mar 10, 2008 11:40 am
by wmguk
Hey,

Code: Select all

 
<tr>
 <td width="232" align="left"><span class=formnames><?php echo $row['descr'];?> &nbsp;&nbsp;&nbsp;&nbsp; 
     <select name="type" id="type" STYLE="background-color:#ffffff;border:0;font-weight:bold;color:#666666;">
     <option value="Colour">Colour</option>
     <option value="B&W">B & W</option>
     <option value="Sepia">Sepia</option>
   </select>
 </span></td>
 <td align="center"><span class=formnames><?php echo $row['price'];?></span></td>
 <td align="center"><input name="addbox" type="button" value="&nbsp;+&nbsp;" onclick="Item('<?php echo $row['refnum'];?>','<?php echo $row['price'];?>','<?php echo $row['descr'];?>','<?php echo $Pic_Name1;?>','add')">&nbsp;<input type="button" name="subbox" value="&nbsp;&nbsp;-&nbsp;" onclick="Item('<?php echo $row['refnum'];?>','<?php echo $row['price'];?>','<?php echo $row['descr'];?>','<?php echo $Pic_Name1;?>','delete')">&nbsp;<span class=formnames><strong><input type="text" name="<?php echo $row['refnum'];?>" value="None" size="4" readonly STYLE="background-color:#ffffff;border:0;font-weight:bold;color:#666666;"></strong>&nbsp;Selected</span></td>
</tr>
what i need to do is add the value of "type" to the

Code: Select all

<?php echo $row['descr'];?>
section

any thoughts?