#21 raidplan now uses $_POST
rearranged function calls