1 Replies - 245 Views - Last Post: 16 July 2013 - 04:26 AM Rate Topic: -----

#1 behonest  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 05-June 13

checkbox value

Posted 16 July 2013 - 04:01 AM

<?php
session_start();

for ($i = 0; $i < sizeof($row); $i++) {
	echo "<tr class=\"style3\">" .
	"<td class=style3 align=" . "left" . ">" . $row[$i]['fullname'] . </td>" .
	"<td class=style3 align=" . "left" . ">" . $row[$i]['cardno'] . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>" .
	"<td class=style3 align=" . "center" . "><input type='checkbox' name='check' value='1'/></td>" .
	"</tr>";

	echo "<tr>" .
	"<td colspan=" . "5" . "><hr></td>" .

	"</tr>";

}
?>

i have this code i want to get checkbox value?

This post has been edited by JackOfAllTrades: 16 July 2013 - 04:22 AM
Reason for edit:: Added code tags


Is This A Good Question/Topic? 0
  • +

Replies To: checkbox value

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3485
  • View blog
  • Posts: 10,045
  • Joined: 08-June 10

Re: checkbox value

Posted 16 July 2013 - 04:26 AM

you’ll find it in the $_GET/$_POST superglobal under the check index (if you submitted the form).

though I doubt you can do something useful with its value.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1