go-examples/form-ex2/form.html

19 lines
351 B
HTML
Raw Normal View History

2017-07-27 17:57:26 +00:00
<!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>