1 <? require('elements/session.php');
3 $dest = 'quotation.php';
5 if ( isset($_REQUEST['pkgnum']) ) {
9 $params = array( 'custnum', 'pkgnum' );
12 if ( preg_match( '/^(\d+)$/', $_REQUEST['pkgnum'] ) ) {
15 'session_id' => $_COOKIE['session_id'],
16 'pkgnum' => $_REQUEST['pkgnum'],
19 $results = $freeside->quotation_remove_pkg($args);
23 if ( isset($results['error']) && $results['error'] ) {
24 $dest .= '?error=' . $results['error'];
29 header("Location:$dest");