TrabalhosGratuitos.com - Trabalhos, Monografias, Artigos, Exames, Resumos de livros, Dissertações
Pesquisar

O Cadastro de Clientes

Por:   •  23/4/2022  •  Projeto de pesquisa  •  908 Palavras (4 Páginas)  •  96 Visualizações

Página 1 de 4

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Document</title>

<style>

h1 {

margin: auto;

text-align: center;

}

form {

background-color: aqua;

padding: 30px;

margin: auto;

width: 300px;

border-radius: 20px;

margin-top: 30px;

}

.input {

height: 25px;

background-color: black;

color: #fff;

border-radius: 5px;

width: 100%;

}

label {

width: 180px;

display: inline-block;

}

.botao {

background-color: brown;

color: #fff;

border:0px;

height: 25px;

border-radius: 5px;

margin-top: 20px;

}

</style>

<script>

function gravarDados() {

if(document.getElementById('nome').value == '') {

alert('Preencha o seu nome!')

return false;

}

if(document.getElementById('email').value == '') {

alert('Preencha o seu email!')

return false;

}

if(document.getElementById('telefone').value == '') {

alert('Preencha o seu telefone!')

return false;

}

if(document.getElementById('cpf').value == '') {

alert('Preencha o seu cpf!')

return false;

}

//gravacao dos dados

var myHeaders = new Headers();

myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({

"nome": document.getElementById('nome').value,

"email": document.getElementById('email').value,

...

Baixar como (para membros premium)  txt (3.1 Kb)   pdf (40.6 Kb)   docx (8.8 Kb)  
Continuar por mais 3 páginas »
Disponível apenas no TrabalhosGratuitos.com