<div class="row-fluid" >
    <div class="span12">
        <div class="head clearfix">
            <div class="isw-ok"></div>
            <h1>Excel Download</h1>
        </div>
        <div class="block-fluid">
            <form class="form-horizontal" method="post" enctype="multipart/form-data">
                <div class="row-form clearfix">
                    <div class="span12">
                        <label>Excel Query</label>
                        <input type="text" name="query" placeholder="Query Code" autocomplete="off" required/>
                    </div>                        
                </div>
                <div class="row-form clearfix">
                	<div class="span2">
                    	<label>&nbsp;</label>
                        <input type="submit" name="Download" class="btn btn-block" value="Download"/>
                    </div>
                </div>
            </form>  
        </div> 
    </div>
</div>
<?php
if(isset($_POST['Download']))
{
	$query					= $_POST['query'];
	$_SESSION['excel_page']	= $query;
	header("location:pages/excel/Examples/excel_page.php");
}
?>