// For radio buttons to get the value from Form.
if (isset($POST['submit'], $POST['type']))
$type = $POST['type'];
$SESSION['a'] = (int)$type;
if( !empty( $SESSION['a'] ) )
$b = $SESSION['a'];
it is the code that I use for getting the values from Radio buttons.
But I want to use the Class . I want to use the Function in this class.
so that value of Variable $b can be called at any page.
I want to use $b for further calculations at other pages also.
so what is its solution.
i think, is its solution Classes and functions.
If yes, then how can be code of this function and class.