saved data submits to php file as array