Use more secure method of getting the post array