Skip to content

Commit

Permalink
Update ex025
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmrd committed Jan 3, 2025
1 parent 66168a3 commit e2e731f
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
1 change: 1 addition & 0 deletions ex025/cadastro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Os dados foram enviados!
2 changes: 1 addition & 1 deletion ex025/form001.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>Teste de formulário</h1>
<form action="cadastro.php" autocomplete="off">
<form action="cadastro.php" method="post" autocomplete="off">
<p><label for="inome">Nome: </label><input type="text" name="nome" id="inome"></p>
<p><label for="isobrenome">Sobrenome: </label><input type="text" name="sobrenome" id="isobrenome"></p>
<p><input type="submit" value="Enviar"></p>
Expand Down
26 changes: 26 additions & 0 deletions ex025/form002.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulário</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<h1>Teste de Formulário</h1>
<form action="cadastro.php" method="post" autocomplete="on">
<p>
<label for="iuser">Usuário: </label>
<input type="text" name="user" id="iuser" required minlength="5" maxlength="20" size="12" placeholder="Nome do Usuário" autocomplete="username">
</p>
<p>
<label for="ipassword">Senha: </label>
<input type="password" name="password" id="ipassword" required minlength="8" maxlength="20" size="12" placeholder="Mínimo 8 caracteres" autocomplete="current-password">
</p>
<p>
<input type="submit" value="Enviar">
<input type="reset" value="Limpar">
</p>
</form>
</body>
</html>
38 changes: 38 additions & 0 deletions ex025/form003.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formulário</title>
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<h1>Teste de Formulário</h1>
<form action="cadastro.php" method="get" autocomplete="on">
<p>
<label for="iname">Nome: </label>
<input type="text" name="name" id="iname" required maxlength="30" placeholder="Nome Completo" autocomplete="name" size="20">
</p>
<p>
<label for="imed">Média: </label>
<input type="number" name="med" id="imed" required min="0" max="10" placeholder="Nota média de 0 a 10" size="20" step="0.1">
</p>
<p>
<label for="imonth">Período Letivo: </label>
<input type="month" name="month" id="imonth" required value="2025-01">
</p>
<p>
<label for="iday">Dia da avaliação: </label>
<input type="date" name="day" id="iday" required value="2025-01-03">
</p>
<p>
<label for="itime">Hora da avaliação: </label>
<input type="time" name="time" id="itime" required>
</p>
<p>
<input type="submit" value="Enviar">
<input type="reset" value="Limpar">
</p>
</form>
</body>
</html>

0 comments on commit e2e731f

Please sign in to comment.