AKDENİZ FORUM


Ana Sayfa Benim Konularim Benim Mesajlarim
Geri git   AKDENİZ FORUM > VBulletin Destek & Webmaster Genel > Php, Asp, Flash, Java, Html
Kayıt ol Yardım Üye Listesi Arama Bugünki Mesajlar Bütün Forumları okunmuş kabul et

Php, Asp, Flash, Java, Html Php, asp, flash, java, html ve tüm web azılım dilleri hakkında bilgi paylaşımı yapabileceğiniz bölüm.

Cevapla
 
Seçenekler
Alt 07-14-2006   #1
Aytaç
AkdenizForum Kankası
 
Aytaç - ait Kullanıcı Resmi (Avatar)

Türkiyenin En Kaliteli Bilgi Paylasim Mekani AKdenizForum..
Kullanıcı Bilgileri
 
Üyelik Tarihi: Jul 2006
Yaş: 23
Mesajlar: 567
Üye No: 105
Extra Bilgiler
Tecrübe Puanı: 44
Rep Gücü : 59
Rep Derecesi : Aytaç is on a distinguished road
İletişim
ok Siteniz için TC Kimlik Doğrulama scripti

Arkadaşlar, eğer siteniz için üyelik sisteminde seçiciyseniz ya da başka herhangi bir amaçla TC Kimlik Numarası doğrulamaya ihtiyacınız varsa aşağıdaki scriptten faydalanabilirsiniz. Sizlerin bu scripti amacınıza uygun olarak daha da geliştirme şansınız var. Burada iki adet asp dosyamız mevcut : form.asp ve kontrol.asp. form.asp dosyası basit bir formdan oluşmakta, kontrol.asp'de ise kullanıcının formda vermiş olduğu değerler sorgulanıp karşılaştırılarak kullanıcının verdiği bilgileri değerlendirmekte. Umarım işinize yarar.

'/****************FORM.ASP****************/

<html>
<**** **********="Content-Type" content="text/html; charset=iso-8859-9">
<head>
</head>
<body>
<div align="center">
<form method="post" action="kontrol.asp">
<table width="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="right">TC Kimlik Numaranız:</div></td>
<td>&nbsp;</td>
<td><input name="TC" type="text" class="input" size="30" maxlength="11"></td>
</tr>
<tr>
<td><div align="right">Adınız: </div></td>
<td>&nbsp;</td>
<td><input name="AD" type="text" class="input" size="30" maxlength="40"></td>
</tr>
<tr>
<td><div align="right">Soyadınız: </div></td>
<td>&nbsp;</td>
<td><input name="SOYAD" type="text" class="input" size="30" maxlength="40"></td>
</tr>
<tr>
<td><div align="right">Doğum Tarihiniz:</div></td>
<td>&nbsp; </td>
<td><select name="DOGUM_TARIHI" class="input">
<% For i = 1900 To 2006 %>
<option value="<%= i%> "><%=i%></option>
<% Next %>
</select></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="3"><div align="center"><span class="duyuru_baslik style1">Adı ve Soyadı alanını BÜYÜK HARFLERLE giriniz.</span>
</div></td>
</tr>
<tr>
<td height="26" colspan="3"><blockquote>
<p align="center" class="duyuru_baslik style1">
<input name="Submit" type="submit" class="duyuru_baslik" value="Sorgula">
</p>
</blockquote></td>
</tr>
</table></td>
</tr>
</table>
</form>
<p>&nbsp;</p>
</div>
</body>
</html>


'/***************KONTROL.ASP***************/


<%
Dim TCKimlikNo, AD, SOYAD, DOGUM_TARIHI

TCKimlikNo = Trim(Request.Form("TC"))
AD = Trim(Request.Form("AD"))
SOYAD = Trim(Request.Form("SOYAD"))
DOGUM_TARIHI = Trim(Request.Form("DOGUM_TARIHI"))

%>

<html>

<head>
<**** **********="Content-Language" content="tr">
<**** **********="Content-Type" content="text/html; charset=iso-8859-9">
<title>TC Kimlik Kontrol</title>

</head>

<body topmargin="0" leftmargin="0">

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="100%" align="center" height="100%">
<p>

<%


if Len(TCKimlikNo) <> 11 Then
Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=Red>"
Response.Write("TC Kimlik Numarası 11 haneli olmalıdır.")
Response.Write "<BR>"
Response.Write "<a href=javascript:history.go(-1);> Geri Dönmek için tiklayiniz </a> "
Response.Write "<br>"
Response.End()
End if

FOR A= 1 TO LEN(TCKimlikNo)
IF ASC(MID(TCKimlikNo,A,1))>57 OR ASC(MID(TCKimlikNo,A,1))<48 Then
Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=red>"
Response.Write("TC Kimlik alanına yalnızca rakam giriniz!...")
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<a href=javascript:history.go(-1);>Geri</a>"
Response.Write "<br>"
Response.End()
END IF
NEXT



Function XMLWebservices(byVal KimlikNo)
Dim SOAP
SOAP = "<?xml version=""1.0"" encoding=""utf-8""?>"&_
"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">"&_
"<soap:Body>"&_
"<TCKimlikNoDogrula xmlns=""http://kps.nvi.gov.tr/WS/Public"">"&_
"<tcKimlikNo>"& KimlikNo &"</tcKimlikNo>"&_
"</TCKimlikNoDogrula>"&_
"</soap:Body>"&_
"</soap:Envelope>"

Set objWebServices = Server.CreateObject("Msxml2.ServerXMLHTTP")
objWebServices.Open "POST", "http://tckimlik.nvi.gov.tr/kpspublic.asmx", false
objWebServices.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objWebServices.setRequestHeader "soapAction", "http://kps.nvi.gov.tr/WS/Public/TCKimlikNoDogrula"
objWebServices.Send(SOAP)

Dim Text
If objWebServices.readyState = 4 Then
If objWebServices.Status = 200 Then
Text = objWebServices.responseText
End If
End If

Set objWebServices = Nothing

XMLWebservices = Text
End Function

Dim Sonuc
Sonuc = Trim(XMLWebservices(TCKimlikNo))

If (Len(Sonuc) <> 0) Then

Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.loadxml(Sonuc)
Set objNODE = objXML.selectSingleNode("soap:Envelope/soap:Body/TCKimlikNoDogrulaResponse/TCKimlikNoDogrulaResult")

If((objNode.childNodes.item(1).Text) <> AD) then
Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=red>"
Response.Write "Adınız vermiş olduğunuz TC Kimlik Numarasına ait veriler ile uyuşmamaktadir!"
Response.Write "<br>"
Response.Write "Lütfen adınızı BÜYÜK HARFLERLE giriniz!"
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<a href=javascript:history.go(-1);>Geri</a>"
Response.Write "<br>"
Response.End
end if

If((objNode.childNodes.item(2).Text) <> SOYAD) then
Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=red>"
Response.Write "Soyadınız vermiş olduğunuz TC Kimlik Numarasına ait veriler ile uyuşmamaktadir!"
Response.Write "<br>"
Response.Write "Lütfen soyadınızı BÜYÜK HARFLERLE giriniz!"
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<a href=javascript:history.go(-1);>Geri</a>"
Response.Write "<br>"
Response.End
end if

if (objNode.childNodes.item(3).Text<>DOGUM_TARIHI) then

Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=red>"
Response.Write "Doğum tarihiniz vermiş olduğunuz TC Kimlik Numarasına ait veriler ile uyuşmamaktadır!"
Response.Write "<br>"
Response.Write "Lütfen doğum yılı alanına nüfus cüzdanınızdaki değeri giriniz!"
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<a href=javascript:history.go(-1);>Geri</a>"
Response.Write "<br>"
Response.End
end if


Set objNODE = Nothing
Set objXML = Nothing

Else
Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=red>"
Response.Write "Girdiğiniz TC Kimlik Numarasi Hatalıdır!"
Response.Write "<br>"
Response.Write "Lütfen kontrol ederek tekrar deneyiniz!"
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<a href=javascript:history.go(-1);>Geri</a>"
Response.Write "<br>"
Response.End
End If


Response.Write "<br><div align=center><center>"
Response.Write "<font face=tahoma style=""font-size: 12"" color=Red>"
Response.Write "<b>Girilmiş olan veriler doğrudur.Teşekkür ederiz.</b>"
Response.Write "<br>"
Response.Write "</font>"
Response.Write "<br>"
Response.Write "<b><a href='javascript:window.close()'> Pencereyi Kapat</b></a>"
Response.End
%>

</p>
</td>
</tr>
</table>
</center>
</div>
</body>

</html>



๑۩۞۩. Fëanor Fëfalas. ۩۞۩๑


Aytaç isimli üyemiz çevrimdışıdır. (Offline)   Alıntı ile Cevapla
Alt 10-27-2006   #2
andac
Amatör Üye
 
andac - ait Kullanıcı Resmi (Avatar)

Türkiyenin En Kaliteli Bilgi Paylasim Mekani AKdenizForum..
Kullanıcı Bilgileri
 
Üyelik Tarihi: Oct 2006
Mesajlar: 1
Üye No: 1327
Extra Bilgiler
Tecrübe Puanı: 0
Rep Gücü : 50
Rep Derecesi : andac is on a distinguished road
İletişim
Standart


teşekkürler, güzel bir bilgi.
andac isimli üyemiz çevrimdışıdır. (Offline)   Alıntı ile Cevapla
Alt 07-15-2007   #3
Ch€mist
Özel Üye
 
Ch€mist - ait Kullanıcı Resmi (Avatar)

Türkiyenin En Kaliteli Bilgi Paylasim Mekani AKdenizForum..
Kullanıcı Bilgileri
 
Üyelik Tarihi: Jul 2007
Nerden: K.MARAŞ
Mesajlar: 4.126
Üye No: 21833
Extra Bilgiler
Tecrübe Puanı: 31
Rep Gücü : 199
Rep Derecesi : Ch€mist has a spectacular aura aboutCh€mist has a spectacular aura about
İletişim
Standart

paylaşımın için teşekkürler...

CH€MİST

-------------------------------------------------------------------------------------------------------


[ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...]






-------------------------------------------------------------------------------------------------------



€F€-


AkdenizForum Toolbar Sitemizi Daha İyi Kullanmak İstiyorsanız Daha Kolaylıkla Sizde İndirin [ÜYE OLMADAN LİNKLERİ GÖREMEZSİNİZ. BURAYA TIKLAYARAK BEDAVA ÜYE OLUN...]
Ch€mist isimli üyemiz çevrimdışıdır. (Offline)   Alıntı ile Cevapla
Cevapla

Seçenekler

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Gitmek istediğiniz klasörü seçiniz

Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar son Mesaj
Windows XP'yi Hızlandıracak Tüm Ayarlar Brad-Let Püf Noktalar 1 06-08-2007 05:54 AM
Windows XP Özel Ayar!!! quant£S® Dökümanlar 0 05-19-2007 08:55 PM
XP'ye İnce Ayar Sh€qiL Dökümanlar 0 05-14-2007 06:08 AM
Xp için ipuçları Brad-Let Dökümanlar 0 07-28-2006 08:49 AM


Saat: 12:39 AM


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Akdeniz forum Web Sitesi Bir Forum sitesi oldugun'dan öterin kullanicilar görüs almadan konularini aninda sitede yayinlayabilmektedir
bu yazılardan dolayı doğabilecek her türlü sorumluluk yazan kullanıcılara aittir,
yine de sitemizde yasalara aykırı unsurlar bulursanız iletişim Yoluyla email adresine bildirebilirsiniz..


Diyet Uzmanı Sesli Chat oyun oyun hileleri oyun adtech ile reklam 2.0 seo yarışması Büyükçöplük.Com fx15
Sitemap
5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 450, 18, 19, 20, 21, 22, 23, 24, 25, 287, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 426, 38, 39, 40, 41, 43, 44, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 75, 258, 82, 83, 86, 87, 88, 89, 342, 260, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 117, 112, 111, 270, 120, 121, 122, 123, 124, 125, 126, 127, 128, 134, 130, 131, 316, 133, 221, 137, 142, 268, 138, 454, 145, 141, 139, 140, 163, 146, 172, 173, 147, 144, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 319, 194, 171, 170, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 195, 196, 197, 318, 198, 199, 220, 205, 206, 207, 208, 211, 212, 213, 214, 215, 216, 217, 218, 222, 226, 228, 230, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 243, 244, 250, 251, 252, 257, 254, 253, 255, 259, 261, 269, 271, 503, 272, 273, 274, 275, 277, 283, 279, 280, 281, 282, 284, 285, 286, 288, 289, 290, 291, 295, 296, 304, 305, 308, 309, 310, 311, 312, 313, 314, 320, 321, 322, 323, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 415, 336, 337, 338, 340, 341, 343, 344, 345, 346, 347, 348, 349, 350, 351, 385, 396, 355, 356, 358, 360, 361, 362, 363, 364, 365, 367, 368, 369, 370, 371, 372, 374, 375, 376, 378, 379, 381, 382, 383, 384, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 397, 398, 399, 400, 401, 402, 403, 404, 405, 407, 408, 409, 410, 411, 412, 413, 414, 416, 417, 418, 419, 421, 422, 423, 424, 425, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 455, 456, 457, 458, 459, 460, 461, 462, 508, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 504, 505, 506, 507, 528, 529, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542,