try with ajax calling a separate php script