晕S,在 PHP 版不是给你贴了,不行么?如果不行,什么错误??

解决方案 »

  1.   

    :)不要晕死,晕死也等回答我以后吧
    不行,就是TEXT里什么也出现。你们说,到这里来,我就又贴过来了。。
      

  2.   

    加上,有很多产品,size 和price是对应每一个商品
    就是:产品1 size price;
          产品2s ize price;
    我不知道是不是有关系。
      

  3.   

    给 input 再加一个ID:
    <input name="price" type="text"  value="" ID="price">再用那段代码就OK了。
      

  4.   

    <select name="size" onchange="price.value=this.options[this.selectedIndex].price">
    <?    
    $sql = "SELECT * FROM Tphotoprice  where shop_id='$shopid'  order by size ";
    $result = mysql_query($sql) or die(mysql_error());
    $num = mysql_num_rows($result);
    if($num > 0)  {
        while($row = mysql_fetch_array($result)) {
    ?>
    <option value="<? echo $row['size'];?>" price="<?echo $row['price'];?>">
    <? echo $row['size'];?>
    </option>
    <?}?>
    </select>
    <input name="price" type="text" id='price' readOnly>