Jump to content
Fórum Script Brasil
  • 0

Checar Cpf No Banco De Dados


igor.damiano

Question

4 answers to this question

Recommended Posts

  • 0

<%

rs.open="Select * from tabela where CPF=.....",Conexao

Depois verifica se achou algum registro

if rs.EOF then

'FAÇA O INSERT AQUI.....

rs.open="Insert ..........."

Else

'Não cadastra, pois já existe o CPF

response.write "<script>alert('ESTE CPF JÁ ESTÁ CADASTRADO'); return false</script>"

end if.

%>

acho que seria isso aqui mesmo.......

você só precisa adequar ao seu banco e a sua conexão.... tem q fazer o insert e tals...

testa ai..........

falou

Link to comment
Share on other sites

Join the conversation

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

Guest
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.



  • Forum Statistics

    • Total Topics
      152.1k
    • Total Posts
      652k
×
×
  • Create New...