dump3cz




class pricer {
private $pricer;

function __construct() {
$this->pricer = isset($_POST['pricer']) ? $_POST['pricer'] : null;
}

function start() {
if (empty($this->pricer)) {
throw new Exception("Empty Post not allowed");
}

else
{
// Do some stuiff
echo " Registration Done";
}
}
}

$register = new pricer();
if(!empty($_POST))
{
$register->start();
}

$pricer = $_POST['pricer'];
echo $pricer ?>



hocam böyle denedim beceremedim . echo da yazmadı