Can someone tell me what I am doing wrong here. I get these error messages:
Notice: Use of undefined constant select - assumed 'select' in 'blah blah'
Notice: Array to string conversion in 'blah blah'
Notice: Array to string conversion in 'blah blah'
I am trying to display the selections from page one
page one code
<input type=\"checkbox\" name=\"select[]\" onclick=\"calc_cost()\" value=\"$array\" $name[$i]</td>
and display the selections on page two in a table using
<?php
$array = $_POST[select];
for ( $loop=0; $loop<count($array); $loop++ )
{
$string = explode(",", $array);
$i = 0;
$element = $string;
$title= array($element);
$artist= array($element);
$type= array($element);
$cost = array($element);
echo "<tr><td>$name</td>
<td>$code</td>
<td>$time, $date</td>
<td>\$$cost</td>
</tr>";
}
?>
Array Array Array Array are the only values showing up in my table. What have I done wrong??????????
Ahhhhhhhhhh :eek: