Hi
Thanks for this but I still seem to be having issues....
1) When i put the following code in my script I get an error "parse error, expecting T_STRING' orT_VARIABLE' or `T_NUM_STRING' ". I have checked the code many times but can't seem to spot the problem.
<= code =>
$query = "SELECT dom_name FROM DOMAIN where ipstag='ON HOLD'";
$result = mysql_query ($query);
while($row = mysql_fetch_array($result))
{
echo "<input type = \" checkbox\" name = \"array[$row["dom_name"]]\" />";
echo stripslashes($row["dom_name"]);
}
2) When i put the following code into the page I post to, i get "invalid argument supplied for foreach()".
<= code =>
mysql_select_db("projektdb");
$arr = $_POST['array'];
foreach($arr as $domain => $checked) {
//debugging
echo "Domain: $domain - Checked: $checked";
}
What am I doing wrong?! 🙂 Any help anyone can give me would soooo appreciated!
Thanks in advance.