Created
December 10, 2021 12:31
-
-
Save frederikduchi/e3f30bcad6b81b51c098636ecb1dc67e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="content"> | |
<form action="index.php?page=home" method="post" enctype="multipart/form-data"> | |
<input type="hidden" name="action" value="add_user"> | |
<input type="text" name="username" value="frederikdc"> | |
<input type="file" name="picture" accept="image/png, image/jpeg, image/gif"> | |
<input type="submit" value="upload image"> | |
</form> | |
<ul> | |
<?php foreach($users as $user): ?> | |
<li> | |
<p><?php echo $user->username; ?></p> | |
<img src="<?php echo $user->picture; ?>" alt=""> | |
</li> | |
<?php endforeach; ?> | |
</ul> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment