Sorun javascript kullanarak / devre dışı düğmesi Enable

0 Cevap php

Im düzenleme düğmesi / devre dışı sağlayacak bir onay kutusu eklemek çalışıyorum. Bir fiyat listesini almak ve bir tablo içinde görüntüleyerek Im. I php koduna javascript eklediğinizde çalışmıyor. Aşağıda benim kodu

<table border="1">
  <tr>

    <td width="100">Fee % </td>
    <td width="100">Price</td>
    <td width="100">Total</td>
    <td width="102">&nbsp;</td>

  </tr>
  <tr>
    <?php
  $sql1="select * from pricelist";
  $result1=mysql_query($sql1) or die(mysql_error());

  while ($row=mysql_fetch_array($result1)) {

$id=$row['id'];
$price=$row['h_price'];
$a=0;

print "<form id='form1' name='$a+' method='post' action=''>";
print "<td><input name='fees' value ='$fees' type='text' size='4' /></td>";
print "<td><input name='price' value ='$price' type='text' size='15' /></td>";
echo "<td><input type='checkbox' onclick='this.$a+.disabled = !this.checked;'><td>";
print"<td><input type='submit' name='$a+' value='Submit' disabled='disabled' /></td>"; 
print "</tr>";
print "</form>";

    }
   ?>
</table>

Birisi ben ne yanlış yapıyorum bana söyleyebilir misiniz?

Teşekkürler

0 Cevap