-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.html
More file actions
43 lines (38 loc) · 1.18 KB
/
forms.html
File metadata and controls
43 lines (38 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<h1>Formulario</h1>
<form method="POST">
<input type="hidden" name="id" value="3">
<input type="text" name="nome">
<input type="password" name="senha">
<textarea name="bio" cols="30" rows="10"></textarea>
<div>
<input type="radio" name="tipo" value="admin">Admin
<input type="radio" name="tipo" value="regular">Regular
<input type="radio" name="tipo" value="professor">Professor
</div>
<div>
<input type="checkbox" name="ativo">
</div>
<select name="estado">
<option value="ac">Acre</option>
<option value="ba">Acre</option>
<option value="ce">Acre</option>
</select>
<select name="interesses" multipe size="2">
<option value="aca">Acre</option>
<option value="bas">Acre</option>
<option value="cef">Acre</option>
</select>
<button formaction="http://localhost:3003/usuarios">submit</button>
<button formaction="http://localhost:3003/usuarios/3">alterar</button>
</form>
<style>
input,
textarea {
display: block;
margin-bottom: 10px;
}
input[type=radio],
input[type=checkbox] {
display: inline;
}
</style>