<?php 
	require_once('Connections/conn_ama.php');

	if(!isset($_SESSION)){
        session_start();
	} 
	
	//define('MAX_FILE_SIZE',10121200);
	if(isset($_POST['sid'])){
		$sectionID = $_POST['sid'];
	}

 ?>

<!-- <div class="col-md-9 data-area"> -->
	
	<div class="data-area-wrap">
		<div class="form-wrapper">
			<form id="new-question-detail">
			  	<fieldset>
			  		<legend>Question Details <?php //print_r($_SESSION); ?></legend>
			  		<div class="form-group">
					    <label for="question">Question</label>
					    <input type="text" name="question" class="form-control" id="question" placeholder="Question">
				  	</div>

				  	<!-- <div class="form-group">
					    <label for="gist">Gist</label>
					    <input type="text" name="gist" class="form-control" id="gist" placeholder="Gist">
				  	</div> -->

				  	<div class="form-group">
					    <label for="answer">Answer</label>
					  <textarea class="form-control" name="answer"  cols="3" rows="2" id="answer"></textarea>
				  	</div>

				</fieldset>
				<hr>
			  <button type="submit" id="add-question-detail" class="btn btn-success">Submit</button>
			  <input type="hidden" name="MM_insert" value="add-new-question-detail" />
			  <input type="hidden" name="sectionID" value="<?php echo $sectionID; ?>" />
			  <div class="error_msg"></div>
			</form>
		</div><!-- End .form-wrapper-->
	</div><!-- End .data-area-wrap-->	
<!--</div>-->	<!-- End .data-area -->

    