36545-vm/upload.php
2025-12-01 14:29:09 +00:00

22 lines
768 B
PHP

<?php include 'header.php'; ?>
<div class="container">
<h1>Upload a Photo</h1>
<form action="process_upload.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="name">Your Name</label>
<input type="text" name="name" id="name" required>
</div>
<div class="form-group">
<label for="photo">Photo</label>
<input type="file" name="photo" id="photo" required>
</div>
<div class="form-group">
<label for="caption">Caption</label>
<textarea name="caption" id="caption" rows="4"></textarea>
</div>
<button type="submit" class="btn-primary">Upload</button>
</form>
</div>
<?php include 'footer.php'; ?>