getting input value in session variable in php

Solutions on MaxInterview for getting input value in session variable in php by the best coders in the world

showing results for - "getting input value in session variable in php"
Gabriele
03 Nov 2017
1$qty = isset($_GET['qty']) ? $_GET['qty'] : 1;
2$_SESSION['qty'] = $qty;