get form options updated in php function