php program to allow user to add value to an array