Mudanças entre as edições de "Formulário Adesão"
Linha 1: | Linha 1: | ||
{| width="100%" cellspacing="1" cellpadding="1" border="0" style="border: 1px solid rgb(163, 115, 67); padding-left: 7px; font-size: 100%; font-family: arial; background-color: rgb(247, 247, 247); text-align: left;" | {| width="100%" cellspacing="1" cellpadding="1" border="0" style="border: 1px solid rgb(163, 115, 67); padding-left: 7px; font-size: 100%; font-family: arial; background-color: rgb(247, 247, 247); text-align: left;" | ||
|- | |- | ||
− | | [[Image:Wiki cvago form adesao.png]] | + | |<center> [[Image:Wiki cvago form adesao.png]]</center> |
|- | |- | ||
| <addhtml> | | <addhtml> |
Edição das 16h18min de 31 de maio de 2011
<addhtml>
<script language="JavaScript"> function valida(){ var doc = window.document; if(doc.getElementById("nome").value == ""){ alert("Por favor insira um nome!"); doc.getElementById("nome").focus(); return false; } if(doc.getElementById("email").value == ""){ alert("Por favor insira seu email!"); doc.getElementById("email").focus(); return false; } if(doc.getElementById("ddd").value == ""){ alert("Por favor Informe o DDD de seu Telefone!"); doc.getElementById("ddd").focus(); return false; } if(doc.getElementById("telefone").value == ""){ alert("Informe um telefone para contato!"); doc.getElementById("telefone").focus(); return false; } if(doc.getElementById("ddd2").value == ""){ alert("Por favor Informe o DDD de seu Celular!"); doc.getElementById("ddd2").focus(); return false; } if(doc.getElementById("celular").value == ""){ alert("Por favor Informe o número de seu celular!"); doc.getElementById("celular").focus(); return false; } if(doc.getElementById("marca").value ==""){ alert("Por favor Informe a marca do veículo!"); doc.getElementById("marca").focus(); return false; } if(doc.getElementById("modelo").value ==""){ alert("Por favor Informe o modelo do veículo!"); doc.getElementById("modelo").focus(); return false; } if(doc.getElementById("ano").value ==""){ alert("Por favor Informe o ano do veículo!"); doc.getElementById("modelo").focus(); return false; } return true; }
<form action="envio_teste.php" method="post" onSubmit="javascript: return valida();"> <body bgcolor="#F2F2F2">
</body> </form>
|