Please can i edit the purchase code out.
function validate_purchase_code() {
$purchase_code = $this->input->post('purchase_code');
$validation_response = $this->crud_model->curl_request($purchase_code);
if ($validation_response == false) {
// keeping the purchase code in users session
session_start();
$_SESSION['purchase_code'] = $purchase_code;
$_SESSION['purchase_code_verified'] = 1;
//move to step 3
redirect(site_url('index.php?install/step3'), 'refresh');
} else {
//remain on step 2 and show error
session_start();
$_SESSION['purchase_code_verified'] = 0;
redirect(site_url('index.php?install/step2/error'), 'refresh');
}
}