PHP Classes

File: view/func/form/file.php

Recommend this page to a friend!
  Classes of Ahmad Mustapha   Simple React PHP HTTP Server   view/func/form/file.php   Download  
File: view/func/form/file.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Simple React PHP HTTP Server
Pure PHP HTTP server using ReactPHP library
Author: By
Last change:
Date: 3 years ago
Size: 1,199 bytes
 

Contents

Class file image Download
<?php require dirname(__DIR__, 2) . '/includes/header.php' ?>
<div class="row justify-content-center mt-5">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">File Upload</div>
                <div class="card-body">
                    <form action="/func/form/upload" method="post" enctype="multipart/form-data">
                        <div class="input-group">
                            <input type="file" name="avatar" class="form-control" placeholder="File">
                        </div>
                        <div class="input-group mt-2">
                            <textarea name="comment" class="form-control" placeholder="Write some comment here"></textarea>
                        </div>
                        <div class="d-flex justify-content-end">
                            <button type="submit" class="btn btn-md btn-primary mt-2">
                                <i class="bi bi-upload"></i> Upload
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
<?php require dirname(__DIR__, 2) . '/includes/footer.php' ?>