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

@ -71,7 +71,7 @@ if( $_SESSION['access'] != 1 ) {
}
include "includes/classes/select2.class.php"; ?>
<br />
<form id="select_form" required method="post" action="includes/update_event.php">
<form id="select_form" required method="post" action="includes/update_event.php" enctype="multipart/form-data">
<table align=center>
<tr>
<td>
@ -135,7 +135,7 @@ if( $_SESSION['access'] != 1 ) {
Issue Description:
</td>
<td>
<?=$desc?>
<?=nl2br($desc)?>
</td>
</tr>
<tr>
@ -166,6 +166,14 @@ if( $_SESSION['access'] != 1 ) {
<input type="text" name="end_date_time" id="end_date_time" value="<?=$endtimedate;?>" />
</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="Submit"/>