Hi
I am trying to get the $array_number variable into the input box but i cannot manage it i keep getting this from the echo statement
$key => $array_number
instead of getting
$key => 0
$key => 1
etc
My question is really can you do this value="$array_number"
**************** Code *************************
// Get the array number
$array_number = $grind_number - 1;
echo'<p class = "confirmation"><input type="checkbox" name="remove[]" value="$array_number"/> Remove</p>';
if (isset($_POST['submit']))
{
foreach($_POST['remove'] as $key=> $data)
{
echo $key.'=>'. $data.'<br>';
}
}
I am trying to get the $array_number variable into the input box but i cannot manage it i keep getting this from the echo statement
$key => $array_number
instead of getting
$key => 0
$key => 1
etc
My question is really can you do this value="$array_number"
**************** Code *************************
// Get the array number
$array_number = $grind_number - 1;
echo'<p class = "confirmation"><input type="checkbox" name="remove[]" value="$array_number"/> Remove</p>';
if (isset($_POST['submit']))
{
foreach($_POST['remove'] as $key=> $data)
{
echo $key.'=>'. $data.'<br>';
}
}