• 0
Sign in to follow this  

Ajuda com Form


Olá pessoal, eu preciso bloquear um caracter específico, o underline para dois inputs do meu form.

E também preciso bloquear a tecla Ctrl+C e Ctrl+V, porque se a pessoa copia e cola caracteres, meus inputs as aceitam, mesmo que eu tenha configurado um onkeypress que as bloqueia...

Eu encontrei esse Script para bloquear caracteres, mas não consegui usá-lo.

$pattern = "[^a-zA-Z0-9]";
if(ereg($pattern,$password) == TRUE)
die('Caracters não permitidos');

Por favor, isso é urgente.

Aguardo respostas...


Edited by ReDNoS

Share this post

Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this