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