Updated php page to handle form content being submitted