How to solve refresh page problem?

But by this way i will not able to get the value of php variable because it will not be there after post by jquery or ajax done.
i only can show message but i too want a variable with value must be shown.
Thanks