changed posturl tag to var