Fixed all bugs

This commit is contained in:
CragglesG 2024-09-29 14:37:39 +01:00
parent d02ca243eb
commit acc583b24e
4 changed files with 14 additions and 19 deletions

View file

@ -9,15 +9,15 @@
<body>
<h1 class="p-2">URL Shortener</h1>
<p class="ps-2">Quickly shorten any URL!</p>
<form action="/form" method="POST">
<form action="/form" method="POST" enctype="application/x-www-form-urlencoded">
<div class="mb-3 p-2">
<label for="slug" class="form-label">Slug</label>
<input type="text" class="form-control" id="slug" aria-describedby="emailHelp">
<input type="text" class="form-control" id="slug" name="slug">
<div id="slugHelp" class="form-text">This is added to the short URL. Keep it simple.</div>
</div>
<div class="mb-3 p-2">
<label for="link" class="form-label">Link</label>
<input type="text" class="form-control" id="link">
<input type="url" class="form-control" id="link" name="link">
<div id="linkHelp" class="form-text">This is the link that you want to redirect to.</div>
</div>
<button type="submit" class="btn btn-success" style="margin-left:.5rem;">Submit</button>