Add image upload handling
This commit is contained in:
11
addevent.php
11
addevent.php
@ -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" />
|
||||
|
Reference in New Issue
Block a user