Wrote code assigning Temp values to variable in php