Hi
Here is my array which works find
$_SESSION['grind_array'][] = array ( 'interest' => $_SESSION['interest'],
'subject' => $_SESSION['subject']
'level' => $_SESSION['level']);
My problem is this how do I get the array index number, as I will need this number in another page to allow the users to delete a certain array item.
For example id someone submits 5 grind_arrays and then they want to remove the second one which is array [1] how can I get this value. Is it something like this.
$_SESSION['grind_array'][] = array ( 'index' => $_SESSION['index'],
'interest' => $_SESSION['interest'],
'subject' => $_SESSION['subject']
'level' => $_SESSION['level']);
How is it possible to delete from an array I was going to use the unset SESSION command to remove the specified array element, is this correct ?
Regards
Graham
Here is my array which works find
$_SESSION['grind_array'][] = array ( 'interest' => $_SESSION['interest'],
'subject' => $_SESSION['subject']
'level' => $_SESSION['level']);
My problem is this how do I get the array index number, as I will need this number in another page to allow the users to delete a certain array item.
For example id someone submits 5 grind_arrays and then they want to remove the second one which is array [1] how can I get this value. Is it something like this.
$_SESSION['grind_array'][] = array ( 'index' => $_SESSION['index'],
'interest' => $_SESSION['interest'],
'subject' => $_SESSION['subject']
'level' => $_SESSION['level']);
How is it possible to delete from an array I was going to use the unset SESSION command to remove the specified array element, is this correct ?
Regards
Graham