Updated PHP scripts to support new forms