Konu: Kullanıcı girişi html kodu Çarş. Eyl. 02, 2009 7:47 pm
Kod:
<!-- TWO STEPS TO INSTALL MULTIPLE USERS:
1. Copy the first code into the HEAD of your HTML document 2. Put the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Copy this code into the HEAD of your login HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin function Login(){ var done=0; var username=document.login.username.value; username=username.toLowerCase(); var password=document.login.password.value; password=password.toLowerCase(); if (username=="KULLANICI ADI" && password=="ŞİFRESİ") { window.location="GİDİLECEK URL"; done=1; } if (username=="member2" && password=="password2") { window.location="page2.html"; done=1; } if (username=="member3" && password=="password3") { window.location="page3.html"; done=1; } if (done==0) { alert("yanlış şifre!!!"); } } // End --> </SCRIPT>
<!-- STEP TWO: Paste this code into the BODY of your HTML document -->