require_once 'HTML/QuickForm/Action/Display.php';
// Start the session, form-page values will be kept there
-session_start();
+//session_start();
// Check to make sure the end date is the
// same as the start date or later in the year.
function __construct($formName, $method = 'post', $target = 'index.php?catid=9', $attributes = null)
{
//$target = ($_POST['_qf_default'] == 'page2:next') ? $target . '&_qf_page2_display=true' : $target;
- parent::__construct($formName, $method, BASE_URL . $target, $attributes);
+ parent::__construct($formName, $method, MEDIA_BASE_URL . $target, $attributes);
$this->_validationType = 'server';
$this->_partySize = array('' => '-- Select Size --') + range(0, 10);
}
$elements[] = array('type' => 'header', 'req' => false, 'name' => 'header_rmv', 'display' => 'Package Price Quote Request page 3 of 4');
$elements[] = array('type' => 'static', 'req' => false, 'name' => 'tos_rmv', 'display' => 'Terms of Service:', 'opts' => $tos);
- $elements[] = array('type' => 'static', 'req' => false, 'name' => 'view_courses_rmv', 'display' => 'Click here to view course<br>desriptions and locations:', 'opts' => '<a id="viewCourses" target="_blank" href="'.BASE_URL.'courses-11/">View Courses</a>');
+ $elements[] = array('type' => 'static', 'req' => false, 'name' => 'view_courses_rmv', 'display' => 'Click here to view course<br>desriptions and locations:', 'opts' => '<a id="viewCourses" target="_blank" href="'.MEDIA_BASE_URL.'courses-11/">View Courses</a>');
$elements[] = array('type' => 'elementGrid', 'req' => false, 'name' => 'golfing', 'display' => 'Golfing Preference:', 'opts' => array('actAsGroup' => false));
$prevnext[] =& $this->createElement('submit', $this->getButtonName('next'), 'Next step >>');
$pmgolf[] =& $this->createElement('select', "pmTeeTime$i", null, $evening);
$pmgolf[] =& $this->createElement('select', "pmCourse$i", null, $courses);
- $source->addRow(&$amgolf, $calDate['date']);
- $source->addRow(&$pmgolf, ' ');
+ $source->addRow($amgolf, $calDate['date']);
+ $source->addRow($pmgolf, ' ');
}
}
}
{
function perform(&$page, $actionName)
{
- $return = $this->_getEntireForm(&$page);
- if ($this->_process(&$page, $return)) {
+ $return = $this->_getEntireForm($page);
+ if ($this->_process($page, $return)) {
$return = "<p>The information below was successfully submitted</p>\n<pre>\n{$return}\n</pre>\n";
$return = "<p>Thank you for requesting a custom package price quote from Big Fore Golf.
The lodging partner that you requested will receive your request and personally
}
}
-$wizard =& new HTML_QuickForm_Controller('Wizard');
+$wizard = new HTML_QuickForm_Controller('Wizard');
$wizard->addPage(new PageFirst('page1'));
$wizard->addPage(new PageSecond('page2'));
$wizard->addPage(new PageThird('page3'));
$wizard->addAction('display', new ActionDisplay());
$wizard->addAction('process', new ActionProcess());
-$pqForm = $wizard->run();
+echo $wizard->run();
+$form = '<pre>'.print_r($_SESSION, true).'</pre>';
+echo $form;