<?php
if(!$_POST[installation]) {
echo "
<div style=\"display: none;\" id=\"products\">
<div style=\"overflow: auto; height: 150;\";>
<form method=\"post\">
<table>";
$get_produc = mysql_query("SELECT * from `products`");
while($product = mysql_fetch_array($get_produc)) {
echo "
<tr>
<td><input type=\"checkbox\" name=\"check[]\" value=\"" . $product['id'] . "\""; if($product['rec']=="yes") { echo " checked disabled"; } echo ">" . $product['name'] . "</td>
</tr>";
}
echo "
</table>
</div>
<input type=\"submit\" name=\"installation\" class=\"sub\" value=\"Install\">
</form>
</div>";
}else{
echo "<div id=\"install\"><center><img src=\"/delta/modules/ajax-loader.gif\"><br>
<b>Installing...</b> (May take a few minutes)</center></div>
<body onload=\"HideContent('install');\">";
print_r($_POST['check']);
$product = implode("/", $_POST['check']);
// rest of code etc...
?>
But it can't be that it isn't submitting. As if I add another input field, that posts perfectly fine. And the form does submit. It just errors on the checkboxes :S