0
I don’t know why. The page doesn’t work. Does anyone know how to help me figure out the problem?
I want the date mask to work in the fields data
and in the field Venc_Garantia
someone can help me?
<html>
<head>
<script src="C:\wamp\www\cadastro\javascript\jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="C:\wamp\www\cadastro\javascript\jquery.maskedinput.min.js" type="text/javascript"></script>
<script>
jQuery(function($){
$("#data").mask("99/99/9999",{placeholder:" "});
$("#venc_garantia").mask("99/99/9999",{placeholder:" "});
});
</script>
<title></title>
</head>
Caso NAO seja DELL clicar aqui: <input name="cadastro_dell" type="button"
onClick="location.href='http://localhost/cadastro/cadastro.php'" value="Cadastro DELL">
<body>
<form name="signup" method="post" action="cadastrando_dell.php"> <br /><br />
Fabricante: <input type="text" name="fabricante" maxlength="10" /> <br /><br />
Modelo: <input type="text" name="modelo" maxlength="50" /> <br /><br />
Tipo: <input type="text" name="tipo" maxlength="50"/> <br /><br />
Data de Envio(ano-mes-dia): <input type="text" name="data" id="data"/> <br /><br />
URL DELL: <input type="text" name="url" maxlength="100"/> <br /><br />
Numero de serie: <input type="text" name="serie" maxlength="12"/> <br /><br />
Proprietario: <input type="text" name="proprietario" maxlength="30"/> <br /><br />
Origem: <input type="text" name="origem" maxlength="30"/> <br /><br />
Venc. Garantia(ano-mes-dia): <input type="text" name="venc_garantia" id="venc_garantia"/>
Tipo de Instalacao: <input type="text" name="tipo_instalacao" maxlength="30"/> <br />
Configuracao: <input type="text" name="configuracao" maxlength="150"/> <br /><br />
uname_a: <input type="text" name="uname_a" maxlength="100"/> <br /><br />
Instalacao: <input type="text" name="instalacao" maxlength="250"/> <br /><br />
Situacao (status): <input type="text" name="status" maxlength="15"/> <br /><br />
Servicos: <input type="text" name="servicos" maxlength="150"/> <br /><br />
Descricao: <input type="text" name="descricao" maxlength="150" /> <br /><br />
Quantidade: <input type="text" name="quantidade" maxlength="5"/> <br /><br />
Numero de Tombamento: <input type="text" name="tombamento" maxlength="13"/> <br /><br />
Local de Uso: <input type="text" name="local" maxlength="20"/> <br /><br />
<input type="submit" value="Cadastrar DELL" name="botao"/>
</form>
<?php
if(isset($_POST["botao"])){
if(empty($tipo) || empty($tombamento) || empty($status)){
echo "Preencha todos os campos!";
}
}
?>
</body>
</html>
`
I am using WAMP with everything updated, but even referencing the Jquery file I do not see applied to mask, which may be?
Obviously I misunderstood the question
– Jorge B.
If you are using a server, you cannot point the address of the file through the local disk, it should be in a folder shared by apache, such as www and use the relative path, as in the responses below.
– Marcelo Aymone