I have a slight issue regarding session variables and arrays. [code]<? session_start(); $ID=$_POST['ID']; session_register('gun_array'); $_SESSION['gun_array']=$array; $array = array(); $array[]=$ID; [/code] This is what I have coded. I want start out with a blank array, then every time you access a certain page, a new $ID should be entered into the array. This value all depends on selections made on the previous pages. The problem I am having is that the new id just replaces the old id, and does not make an array. When I echo the array, its only give the one value, and is replaced when I change $ID. I read before that $array[]=(variable) is equivalent to array_push, but if it is, what else am I doing wrong, since array_push does not work either?