fixed server-side script. Removed SFlatPlanType input from flat form. Forced type to always be "both"