go-examples/form-ex2/form.html
2017-07-27 19:57:26 +02:00

19 lines
351 B
HTML

<!DOCTYPE html>
<html>
<head><title>Form ex2</title></head>
<body>
{{ if . }}
<p>{{ . }}</p>
{{ else }}
<form method="POST" enctype="multipart/form-data">
<label>
Fichier:
<input type="file" name="file"/>
</label>
<input type="submit" value="Submit"/>
</form>
{{ end }}
</body>
</html>