Add image upload handling

This commit is contained in:
2015-05-07 23:31:00 -04:00
parent 628cbb9d95
commit b925d8205a
5 changed files with 214 additions and 56 deletions

View File

@ -114,7 +114,7 @@ if( $_SESSION['access'] != 1 ) {
</div>
<?php include "includes/classes/select.class.php";?>
<br />
<form id="select_form" required method="post" action="includes/insert_event.php">
<form id="select_form" required method="post" action="includes/insert_event.php" enctype="multipart/form-data">
<table align="center">
<tr>
<td>
@ -169,6 +169,7 @@ if( $_SESSION['access'] != 1 ) {
Issue Description:
</td>
<td>
<!-- <input type="text" name="description" id="description" required /> --!>
<textarea name="description" id="description" cols="40" rows="5" required></textarea>
</td>
</tr>
@ -188,6 +189,14 @@ if( $_SESSION['access'] != 1 ) {
<input type="text" name="end_date_time" id="end_date_time" />
</td>
</tr>
<tr>
<td>
Attach an Image:
</td>
<td>
<input type="file" name="fileToUpload" id="fileToUpload" />
</td>
</tr>
<tr>
<td colspan="2" class="ui-helper-center">
<input type="submit" value="Add Event" />