0
while($row = mysql_fetch_assoc($resultParam_pp))
{							
                $lblParameter_pp = $row['ParameterName'];
	$lblParameterSeq_pp = $row['Parameter_seq'];	
	echo "<tr>";
	echo "<form action = 'http://10.237.102.158/SPC_Stations/Grinding/spc_grd_02.php' method = 'post'>";
	echo "<td align = left>";
                echo "<input type = 'radio' name = 'paramSelect' value = '$lblParameter_pp' checked><font face = Arial size = 2>" . $lblParameter_pp;
	echo "<input type = 'hidden' name = 'hidParSel' value = '$lblParameterSeq_pp'></font>";
	echo "</td></form>";
	echo "</tr>";	
}

the problem with this code is that, all of the option buttons are clickable even though they have the same names.

please help..^^

Edited by xuexue: n/a

2
Contributors
4
Replies
6
Views
7 Years
Discussion Span
Last Post by xuexue
0

i have an option button which is produced according to the number of record the result shows, now, the problem is that all the option buttons are clickabkle.

0

if you dont want to option buttons are not clickabkle remove checked from option button.
try like this

while($row = mysql_fetch_assoc($resultParam_pp))

      {

      $lblParameter_pp = $row['ParameterName'];
   4.
      $lblParameterSeq_pp = $row['Parameter_seq'];

      echo "<tr>";

      echo "<form action = 'http://10.237.102.158/SPC_Stations/Grinding/spc_grd_02.php' method = 'post'>";

      echo "<td align = left>";

      echo "<input type = 'radio' name = 'paramSelect' value = '$lblParameter_pp' ><font face = Arial size = 2>" . $lblParameter_pp;

      echo "<input type = 'hidden' name = 'hidParSel' value = '$lblParameterSeq_pp'></font>";
 
      echo "</td></form>";
 
      echo "</tr>";

      }
0

thats not the point sir...the problem is that, when you run this code, you will see that all of the option buttons are clickable..i want to happen is taht, only one button should be clickable.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.