<?php

session_start();
session_regenerate_id();

include('template/index.template.php');
include('data/quoteFormFields.php');

if (isset($_POST['fromForm'])) {
	$validate = $_POST['fromForm'] == $_SESSION['form_' . $quoteForm['formId']];
	$_SESSION['form_' . $quoteForm['formId']] = '';
	include(
		$validate ?
		'modules/quoteFormValidate.php' :
		'modules/quoteFormInvalid.php'
	);
} else include('modules/quoteForm.php');

?>