Heila 0 Newbie Poster

but this line works when i remove the style ..

<td align="center" ><input name="checkbox[]" type="checkbox" id="checkbox" value="<?php echo $row['reviewID']; ?>"/></td>

can you please give me an example so i can understand more !!

Heila 0 Newbie Poster

it doesn't work ..
I'm using action="" to load the same php page when the button is clicked.
anf this code here is to hold the checkbox value

if($_POST['delete']){
//print($_POST);
$checkbox=$_POST['checkbox'];

the code works fine when I remove the jQuery

<script language="javascript">
      $(document).ready(function(){
      $('form').jqTransform({imgPath:'jqtransformplugin/img/'});
      });
      </script>
Heila 0 Newbie Poster

Checkebox doesn't hold its value when i use jQuery styling plugin wich allows me to skin form elements. but when i remove the jQuery the code works !!

can someone plz tell me the way to fix it ?!

Code:

<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">

<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"/>
<title> Delete Review </title>

<link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" />
<link rel="stylesheet" href="demo.css" type="text/css" media="all" />

<!-- Script for the event handeler -->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.colorize-2.0.0.js"></script>
<script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js" ></script>


<script language="javascript">
	$(document).ready(function(){
	$('form').jqTransform({imgPath:'jqtransformplugin/img/'});
	});
</script>

<script>

$(document).ready(function(){
 $("#review").colorize( ); 
});
</script>
</head>

<body>

<form action="" method="post"  class = "first" > 
<p align="center"> Welcome to Delete Review Page <br/>Please seclect what you want to delete </p>

<p>

<table  align="center" width="400" border="0" cellspacing="1" cellpadding="0">
<tr background: rgb(236, 246, 252) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;>
<td><form action="" method="post"  class = "second">

<table id = "review"  width="400" border="0" cellpadding="3" cellspacing="1">

<tr >
<td >&nbsp;</td>
<td colspan="4" align="center" ><strong>Delete Reviews</strong> </td>
</tr>
<tr>
<td align="center" ></td>
<td align="center" ><strong>Shop Name</strong></td>
<td align="center" ><strong>Review</strong></td>
</tr>

 <?php
// Connects to Database
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("phase2") or die(mysql_error());

$query = mysql_query("SELECT beautyshops.shopID, shopName,reviewID, reviews.shopID, review 
FROM beautyshops,reviews WHERE reviews.shopID = beautyshops.shopID ") or die(mysql_error());

while ($row = mysql_fetch_array($query))
{
$SID = $row[beautyshops.shopID];
$SName = $row[shopName];

?>

<tr>
<td align="center" ><input name="checkbox[]" type="checkbox" id="checkbox" value="<?php echo $row['reviewID']; ?>"/></td>
<td align="center" ><strong><?php echo $SName; ?></strong></td>
<td align="center"><?php echo $row['review']; ?></td>
</tr>

 <?php
}
?>
</table> …