0% found this document useful (0 votes)
23 views68 pages

WT Observation

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views68 pages

WT Observation

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 68

a

1)/wzite himl poogam


Lhtml> tago
headTKR College zlhead
z
body

Zh3 7CSE (h3>


2657 CSE <h5 >

2bi9 CSE -0 l
26 He llo z| b>
Zi HTML i>

Lcente Hello CSG <Icen es

h
2C0de t include L
stdd
( nainc)

Ldel>C5ELldel

ldt
Ldtz C56 puter ginesing
Com Sciene and
Ldd
46>TTt7
dngz <dos7zt<

<19]7

<hpog
Oufput
)wsite a
TKR College
Zhead
CSE
CSE z body
C5E Z62
CSE
CSE
CSE
CSE -D hello CSE

welcee
to CSE
Lce
hello CSE

#incude
Veie maínC

int a-5
Þsint(a;
3

HE L LO

CSE
compofeh Scienle Cund erngineenoq

IT
Toter qi en and technelegy
2
CS6-D ff
CSE
Depantmam

CSE-1 yean
CSG -A
COE -B
CSE-C
oCS5-)
2) twsite a a html Prcgharn web pae that darhy
ime table ef classes
zhtml>
zheadcanter>C5E -T(ME TA BLE lcente7heady
Zhtl tko titlo>CStyle
z
tablu th, td, ts
sbody7 bosdu IPE S0LI0 9LACK;
ZCente collapse;?
bosd- colpse,
Ltable Bo sden
=2Pr> <lsty le7

zthzday <lth>
-
Zth0 l0u0<th
2th> l040||G0 zlth
2th> IT;O |2;404 lth>
Zthy I2; 40I:20 21th>
Z4h7i20 -2,20lths
Lth 220- 320 Zth>
- 20|th
Lthz320
Zt37 MoNA Z1th>
DBMS LAB 2lth
Zth COLSPA N=3
RowSPAN="6 7 LDNCH lth>
2Lh
|td
WT
Ztdz MGNTOR|N7 td 4

Ztdz> SE1tcd>
Ztd

1td7TVESDAy2ltd
Ltd
DAA /tdz
td LIB 2t
td CoLSPAN='3> (ente>00S LAB Zestey
zltd7

ctdzWEDNES DY 2|tdz
DA A >
td td
DBM
td S
/td>
ztd 00PStd
2td SE ltd
2td wTZ
(td
Ztd SPORTS Ztdz

2td THURSDAY zltd

td
NANDO TRX </td
Ztd7 </td DAA
LGPAN=3Zontey
> ACES LABlugley
Jtd o eltd7

7
FRIDAYz|ld
ctd?
z
td
z DBMS zltd
Ztd z <itd
WT
td7 OOPS <(td7
<ld7 GE td
DB MSzItd
td
Zlts
Ztx
Ztd SATRDAY zIt OT LABzlcante
Ctd Co L9PA N= 3z2lete> 2
td7

Ltd
td
DBM G
td>

Z|lenten>
zlbody
zlhtot
|3J24
$PORTSI
338|3120i2d
DBMS

S6
LAB
LAB
MENTOPNG

UT
DAA LUT
-)1L40120-12d20-2:20|2:20
ACES
OOPS

OOPS

LE
TAB

TiME CCpG
DAO0pNA.DLhUae

-40iL,

- LAB
CSE D8MS

DBMS SE
iu
lo
ikd
940-l0 A
A DBM5

DA A

TUESDAY DAY
MGNDAy 6ATUROAY

FRIDAY

LDEDNES

THURS
d wpißog
(0

<!||
-29<!|7

<fpoal7
CSE DE PARTMENT

C65-B
C9E-C
CSE-D
CSE DEPA RTMENT

2 CSE- B
-C
3, CSE
5) Wsite a htl psogzc fes ertenaI
C5S

Sty le C
9S
bIcolos blue '
tex traliqn men
3

'6ty lbeheet type = text/css"


=
zlink sel
"Style t95">
Zh ead>
2 body >
2h| Hello CSE lhz
zl6ody

oDtput

Hello CSE
6) wsite ct (5S

26to/> C
SE |Htlo
Zhea d
zeitle
26tyly
body f
ColooPink
text-a)i9n : te yight)

>
2|5tyle

body>
Zh|> Hello lSE Ib>
2\ body>
2|htolz
Oufput

C5E
Hello
) write a html Psognc ton tte in lin
CSS.

zhea1dtite >
(9E <1title
zlhead
cbody> c
dlgn "Cotey >Helld CSE l6/
Zibody>
zlbtm)

Hello CSE
a
8)g wite hfm Psogasn fer tthe
fage
Psegnar
Unodeed. htonl
Lhtnl>
<thtle 7C9e<|Hfley
2\head
Lol>CSE DEPARTMENT
2|17 CSE-A l|iz
z7SE -B |i

zli7 CSE -D|liz


zlol7
LUl>SD 0EPARTMENT

ZÍhtml7
definedlist. htral
Zhtnl
Z head

zbody7
Engnaeiing < ldd 7
(onpoten Sciente and
Zdd 7
LdtzIT /dt7 Techoology /dd >
Zdd7 Irfenahbn

zlhfm|
Fsomes hn ootpot

And Gnginsing
Zhead7 College of Enginsrhg
<tite> TKR
TECIHNVoLoiY <tiF7
5oV,901%
i

2ÍheadZ
nd
(25/o 25Jo
coly "unedud.
nae VUnedeed htn|" Sc Scíene
Zfc .
'detined t
dst
deine
hfnll Compufeh

zlbcy 7 CGE

4scunebet
Zltsanesef>
4htl>
ed hfn/> dezd.

lt

outpot
trsx cotlege of EnNEr NG
CSE DEPARTHENT ng
Compufen Scienu Qnd Engin

2CGE-B IT
IaPematien Technology
3. CGE-L
DEPARTHENT

CS0-8
an intehattie web pase usng HTML cn
)kat
JeuaSipt at allo ws uses to inpuTa set s
i9 doseund:
iotegen honlts and
duS plcLy
des te
bnduy afn SeninJ

zlhead
Lbody7

2Gnipt>

:Psonpt('Eoten Elarnentit));
ycL input tu
h
(PasCFloat Flinpur)) ;/ Pax inpu
ay fpus
mde
Plo tina -point foi dcsad
)
a-6-yo,.

zltodu>
Qutput
This page says
e
Entes lornen t|

COK Cancel
Thus Soys
Page
Ente elornt 2
56

Enty elerant 3

Entes elonant 4

Eoter e lomunt 5
2

89, 5&U8,|2|l2

3|4J24
interath
lo) Dvelop
CUN

e snge Ot o
fo999 iti
4ext ield in vn
d
fiel
anothen text

a brnle shoutd &hoW na


s nof

Zhfm/>
zhoad>

i"J.DUm.Vau
downnt Roms Lfom Vaue
fes lfs ". wed
do uontN(num))
íe (isNa
t (Not a Norlen'),
s akon

Range ")
altor t("out6
3

et

Por (var i-0jie bnjitJ


9witch (n)

&my" brecki
Ccese Wenct Two breatÌ
beak
Lcs
CCse

Wendy t Gix". boeck


Cast "; bLalk
7
Cas Erght"

defoul+ Wenás+=Nine")
3 = Lwezds
fofso] Lwd Vau
do uwmente

Zlhecud>

ee ext
2 uter> Entesa NUmto2 inpb ty

= 'boffen "
elonte>cínput type )
werd? Bn clíck -C&Tt
Naue"In
inpuFylente in Werds :<inpot
cantehy Numle
c6l<b e/iQp utselunter>
"tey han wod
elbody

cutput
|Numbe in wchds X

NUMBER IN WORD S

Enten a Numbeni5

Nombes in werás. foz His


fTH L
Page thatF has ou iopuf, whih Can

mhe
tare g0lt-Lane teytcnd
u
broít boton

numn e} chahacfes. e
n a massa Werds
to t ntee bing let
be panate d wih whiFe Gpace and lines ce
bepava fed wÍ th ew lio chonacte

Lhecd>
L
titHe Lines(wed chaacteslhty

Van Gty dowmnt. Posrlifs ml"Jioputs


g
hin Vauej
Von Sios 9tsplit
= ["o)langth'
=
(Bunt. valu
doument. feros[fom |Jlin
Gplít ).
charactncouatvalue
docume. fezns[ fom)J.
=Slngth -(ines-); wedceunt Va e

Sdount form"sm7.Sto Split( /s1), an gt

z| SUnip t><lhead
Zbo dy

Mottiple lines o
texf <lb
Zuntu >cb Enten
Zblb7tesfarea
Zinput type -buton

Nu o
lines! 2input
=

zfey Vo

-"fext Vawe
cinpot cue="chahtte
Nurey chracteS -
e

Cewnt" Hee='et vale

e|body>

Outpot
Linesywerdo,characters
of text
Enter Moliele

Count

L
Nurmbes of chaacters
h) slaetio

a
Lownty capifal ehould be prioteo
elecs

bold font srze)

Zhec d> countjes </ itle>


Zi+Le Capi tay e
2sty le

cole sed,
-
font coeíghti bold,

3
c[style ge =javasoipt"
25Uipt langua
Punctien (apitall)

vaue i
Plecst select cUny Cootoy:
Van capí tal

iF (unt= ="iodic)
(opifal =NEW DELH",

e(lwn="ching)

3
it(unt PaKistm")

Capital=19LAMBAD":
ief C
wmt=1 bamgla desh)
Capíta) = "HAKA "

iClunte"Japam")
Capí tal = ToKYo";

cuse
Cupifaeo tlect any

déureot. 94FE lament Byl a ("capt"). jone


HTML =Capi ta l,

z [Goni pf >

ebody>

cenby iselect noe


Leuntoy
a
select
tmchange 'capifi ()>
LEC T-Zlo phion>
Copi m Vao. "6elecsE
lDp f en )
Zophen voe chim >HNA
PAKIG TAN JDpho
<
Pukstn's
"
bangladsh >9ANhLADGSH lo Pher
Loptien alu 4 Tapn "> JAPA [ophon NN

21 select>

gzen? 9i ze %"> Capítal


=
)
font colo d=
2tent < P id cap t" >lp>
elunter>
e(body3
Llht
Sotput
opitul Dl
C
Counts

Select a Countsy TAPAN

Capital i5

TOKYO
week 5
13) Creato an XHL documen that lBno
Wsi a
java PSoghan
USes ínfemaion
Yef
Put
u)hich tahey usen I0 ab in fUT and
te use detaíls by tahiog the us inje
docment bi ng a)
tfen fern the XL MPlara
DOH Porsey and b) PrU 5AK
PH
applicatps usfng a)
tho follbwing web
b) Sevlet and c)TIP
a) DoMParser DerrMoava
Impent Jaya í0Filej
Documeat buildnfor
Impent Javax xml panses

impent javayršml pses. Domentoi ldey


tmpent wcdom.Docmenf;
q

Node list}
LPEnt- hgw3Cder
NO de ;
impent Osgwocidom
rw3(.don Elumut
I pt 0og

Publi c
classE Dorm
Pans Den 0

Public static void mai(StsingLT g)

File inputF le Quw Fi le (iDput trt)


DouregtBji lden Factoy dbFactey
Docmentbui ldur Facteyw Lnstenlel,
DoumegtBuilden
dBuilde dbfactey- rauDocwmut
Buidunl,
Dounnt doc=Buildwy ipase (inputflu))
inje doc-getDouunt Elomot. nnali ze)
a) Systursout poinn Root olornent" 4 docrget Dou
rootE lementC getNode Nameci);
Node
a) PHp lst nlis= dociget lrmont, By
TagsNara('stu
dunt"'

Syeten ibut-psinthm (a
Aen
(int tenp= temp nlistgetngth l)} taropr)
dntctoy =
Node nNode nLstiterC ternp)'
SysfurmDutt paintn l\n rent Eument:
ONode igetNedeNael)))
ELEMENNODE
iP(ONode qetNodeTy peL) = = Node

Elernent eElarot= Elornent )DNde ;

bgstenDut pointn lStudent


s0|l n0 t
eEbagtgetAtsibuto ( sollno"));
SysterDutrpsíntbn ('Fúst Nare;t
eElornentgetElraots By Tag Narme
(pistnone").

Item (o) getTexfContent ()}


Dut-pointbn Last Narne;"t
5yster
By TagName l"lastnaa")
eblmert qetEloment,
item (o)- getTextlontontC);
Systernut pointtm ("Nich
younet zlstude
Neree ( níchno
eElornast. gotElornetsbylag ZStude
iten Co)getTextsnfent), ZBistnc
Sybtem:out poiottn
("MaristeElonegt. zlastna
By Tag Narne l"monhs)ifemco)
getElurs
get Text(en tantt))

ZStude
3 24ist
Zlastr
Catch (Exception e)

e-pointS tock Tsace C))


3 zlcio
Output

DoUn
inputtxt
Z2xn versien=D"2
LclasS> Root
>
studest colino=(393

Zlcstrare Kodllasthare> 6tude

Last
Lmhs>85moyhst
z|stude-nt>
"). ZStudent 30lln= 'u93
z
stname Vaneet<lstnarS
Zastname> Gupta <
llostname
LnicKnarne Vinni 20chname

>

Z5tudut s0l[no=593

Zlastnane Sinqn lastnee


>
jazz clnichneme
Lnichname

z15tudent
2lcla7
outpot php\htdo)22KAlA05LI> 0Cac
C Ltampp.
Domarben DendJaya Vava
\22K9|A05l
eiampp, php\btdos
Root eleent class

Cwsen Elamnt! 6tude


6tudet Sollno393
F1t Naredinka d
Last Name: ha
Nsek Narne dinkas
Mako :

Cuent Elbrent 5tudet


Btudent ln043

dast Noe gupta


Nick Nae Vinni BufPered8

Cnes

b) SAXPnsentl av C
3 cath
3
impet Javay XmPabes 5AXfre c
Publi Vo
irmpet javax xml passers- SAXParsenFactoy
localnaurNe
impet giXml Sax Affsibutey)
n
impent gxnlcsax SAExcepti
Han d bn
3
impet g:xml:Sax helpess-efaulf
Student
Publ c
ciass SAPONSen Xnl
x
ferads Delaultt
and

boolean Studemid tsue, naoa - fati)


nae
int =0; C=D)
Mag else ít(=
Stoíng sid, Sno9add Sqandey tid)
Pobljc VDid Sart ournt)
System out psinfn C
besgbegin fosing
dotument')
Systeoutpsíot (" Enbn stucdnt ID:\t");
toy f
Bufered Reddun sead
=
nw Buezad Recad

(re InputStsecnfeadern S yetem fndd

id =seadesecud Linel)
3
cath (EKcepiem e)l}
3
GtatElamentStsing Usl Sfsing
Publk void
c
,Attxíbula att) f
localncore, Stoinq qNare

Gtudentd =touei

Plag==1)

addess")
else ít(Narne equals Igneze
lddres=toue

else it(4,Nae-equay Igneru


(ase ("gendy)
Plag==)
Saddzn
gend tue; addru
3

Public Void charactwrslchan 3 chint sbot


Sgender
qendu
í4(studugtí d)

Stsing K= new Shsiglch, stant, bngit):


ie (xequals Ctia)) toca Ina
Publíc

else
Syote
Ty
Studetid=fst else

else if(name)
Sysfe
&tsing lchj Gtant bgíh)) Syotun o
Dae =felse

else ie ladds)

Scidd z new Stoing Cch starf: b-ng1);

3
ee itlgenden)
Stut Stsíng Cch, 5 tant, lengtt5))
Sgenden =
gende fal
3
Val, Stsing
Publi c void end Elanet(Stsing
Narne) ?
loca Inae, Stzing

Publrc void endDo cumerntC)

it(c== 0) pxest
is not
Syotem.Dufpsintn l"btudent Id
Tsy Agoig!!! ))
else

STUOENT- 0ETAILS
System. Dut-psintn oin\n

Syotum ot- psinttn("===


id ;\th sid)
Syster-out psint l" Studunt 29tude
Name! t4
Sute ouf. pointn ("Studeat 29fudet
Snare)
Sadd)
Suste out. psinth ( Adzes5 (tl
genden). 2gen de
remd:lt+
6
Systorg out Poín tn U"
z|stud.
25tude
Lstude
Pobli c Gatc mais (5 tsing 7 ang)
Void
LaddE
tfnous Excepion
new Instaa
GAX
Ps P= 5AXPnsen tactey Z(stu
z9tuc
9tu.
P.Pase (w FleLnputSseam (Gtudeotxol)
Naw SA Parsenxm|)) cadd

49tu
Studuntxm|
2otud
Z5tudeots -detuíls
LStucet cQdc
Lstudntid 5tl <l6tudetid>
LNne Ranm lname
Ladde7 B CIL Zaddres Zl5+
Lgende> MaleZlqenden
zlGtudent
25tu det>
29fudeotid?562<[Studentíd>
LDre Ramya lname>
Laddnws kBHP |addeS7
Lgen d >
Female <[gendey>
e|student>
25tudent>
Lstudenti d S63-[studentid

addss
LaddrestEL lgunden
Lqenden >Male
Z(studt7
29tudet dy
e9tudentid564 c/sfuceti

caddasy k0T! addwss


<gnden 2 Female <lqumd
7
Z(Gtudunt
29tu det
565-/studentid
2studeid
2lname7
Zladdress
caddoes EcL
Lgnde > Female zlgendu7

L|Studetdetails 7
Outpof

C: \xampp.phplbtdocs)225A1AD BI >avo
l4) A
UsRs
SAXans LUb Sub
to the b
c
cheched

8UCCesl
a tailun
weekblo

zhead

alhead
26ody

USERNDM

PASSWOR

cin put
W eek-b

) À Uses vali dai en web d pplicafien shon Hy


L
Subroi he login

Cheched cqanst he data ohseady auailabde

s
8UC CeHsul login Pag setuned. oeruwit
a
tailune messa ge is sheun to the ue.
Code
weehblogin hto |.
Lhtrol7
chead
<Htle 7
LoN <IHitlu7
lhead
ebody7
cente z4h|L0lN PAGE 2[h(>bzb

Ltenm achon=( week 6php.php i mehod=


Pot7
USERNOMG Linput tyPeext" ne =Unaei!

PASSWORD Zinppt type -'Passwgd" namez


Upass7>e6nl|7
cin put yee
login "
elogin
zlbray7

$uname =5- PCSTI'CnarI

it(1ca)

itinyli-num_Yeus lseuy)o)
echob76>USer docsoot matchus;
3

t
Week
uearne
Paswoi
íns tead et datalae.
(ode
6alpat
wcektlogin-htn
2htmi7 [head
chead>ztie7LO|N FORM elez
Zbody 7

comton7
ahiz LoN FORM 6i2
=
<fer actien 'weak 7veni tyogiaphp" ehod
Pest7
C

lecho
Linptype4ext" Dal='Una/
Pass wendi die
Linput tye "
PsSwer nane UPwd 3

3
subroífe yaue
=
cinput type= (LOGIN/7
Lnput y pe
=seslf e yaue RESET"|7 echo

U
5enlogí
zílenles>
Lbo dy 7 ZAuthe
ZUsen
lwek7vení ty-bgin-
php
z2php
4
myml =STmplexn|Joadilaluselogin xnl
CnDS0nae
/

GArnluenhar -yxm>USer C5T]->wenare

üsende ¢e$<nlpassrd
poswed)
y0u have
echo welcee $Usennanel|
buccesstully log9ed in"
diec)
3

Paswo
echo

USen logíoc xenl


ZAuthenticaion

Pass wedtkrcetcse <(Paswed>

ZUSen
Pastuwerd CGe passwnd

L(Authenticah n7 two

code
Siro

Lht
chec
week-9
A oimele Calculaen web applicahon hat fahes

of )erg an HTM Page and sehuns thhe


e
wih operahen peremd n

Re opercondy

code
Siople calc- hfro

zhtol >Sie9plo calclaten e(ifle>heady


zheud7itle
2body
Lh2 dlighConten7Simple Calcatih
=
Aor acten = Sim plo calc- php mefhod "Pos'

Ltalte align= centes


d
> Erta Finst Nimen;
ztd
Ltd Lioput type
<
text pane-enum
7<ltd>

Nmes c|td
Ztd Enoz Secend

="Subrorfe
ut fyee
ctd colspan
=('>zip
Vane = tl>fio pot>
Linput ype

Zinpuf tuee=(9ubmit nae ="op lr Vabu

>Sinpuf
"Sobmit" nare -'opl
Valus
=
znp of tupe

no
cinput type= Submit
1z4lin puf

zlbody
Zlh t
S
Tmplecalc-php

n=4 Pos T
fnumI;

e
dop =6-PosT
O
p] i4 (n1

echo " pleast ente two nrhens' ele t


echo" istn anen isi$n L6r
echo
ech o
4Additien i"$ ses;
3

e
$oe5=Gn(-8n2)
eeho "Subtsachen is", 4ses;
3

í(Gop ==/ ")


$ses
=
n/$n2)
echo Oivisien s ises,
(e(Gop ==% ")
Modity

datala
alsea dua

Crpu

hirn

zbod

ztd
zlts
Weet-O
Hodiy he abere Psog7a Buch at sfoe
it steey
Dach quey in a
datalas and checs
o
e
ton
datalase tos t
L3

alsea dy avai labe in He DB,


F
etwn% fhe
Vaue tfhat was Psevieusly
cornputed f e
Cernpul e Sesuit and refrs fafs
Code
wees l cald :hfml

caluater l5tlezlheas
z
7Simple
<head ftle
Lboduy
Calulato 62>
2h2 ign =cntes lSimple
achien=calHbphp" mehod =posf"
fem
zade align

LtdzEntoy Fist. ee,<ltd>


oun">
Ltd 7e loput tupe =fexfDaree=

2td>En tu Secend en;zltd


Ltdzingut tyee = l text nae=
type ='svbroi
colspcun=" 2'zinpt
td tllipput>
opl Vae
name-op Vau
Ainput type"ubnit >zlinput

porne=op* value
Lineuf tyee='subraiF z4linput

zinput pe 'subrgifl! nae=<opk valuyy,


z{ingoty
o,
ncome
=opk vabe
Linput ypi=submít
linput>

ltd
<|fote7

zlbodyz

Cabb php

snom= $-PoST SnUm "J


0p=G-PosT Iop"7')

{(6op /|fop
% ")
echoDìvsi en by zei0 y Not Peiblo 4

linpot
6hbst= localhest
$ust(300+

inpoty Gdb (cal';


$Cenn = mysgli_connect$host, ues

Num) iot; Num 2


sesults
$l =Cecito tato
Dpes aton VNchan (5)es inf)
int
(e(nysqli -ey lbLon $sgl ))
Crested
echotabte

top "
Dpeatez

it (mysl -nurmsows(47ehval )>o)f


=fysli fetchasSO c
(setval ))
whi le
l$ToU

echo "Fist Nurlen


% " )
echo
"Oprate Giísowl'opraten]3 <by, 3

ech
4
L
echo Fust Nurl
(

.
echosec end Nusl si hor2. Ebl>

ech o " Openafo s: ".dop. "Lbyl5»'

($op 3

mys
3

echo '506 fsa ctien is Bseo; 27


echoMoliplicaten
i"r$oes',

echp

s
cho Moduls
3
$uey
=
Cinsert into csl ts vales

mysyliquery(Gons,yer)

mysyli- closel tionn)

27
ig6t

weeKi

shtm)
chea

hecc

ztorm
Usennc

Pusswe

2ínput
log

clwnt=
zlood
<[bhn[
t ohos a
hello pag utu s
tahen
t It shous
houss te stnt ti one ct Hh

sight top cers te page cund Poovies


Losput buton- Bm cli king this butten it shold
togout
mess dae
sbow a logout Page wth Thank Jou

yeKllog ín .htrnl
shtm|
cheadz

= weklseg:php
W
method = pebt">
ctorm chen
<inpUF typt= "text" nue
Usennae:
<input tyoe "Passw d" haZe -'pass"
Paswgd

"'Subtnit
2inpt tye=
login "/
lwekltseg.hton|
Zhtn>
ech
<title REISTRATION<lHtly> hze
clhead>
<
canty >chl> R£g6lsTRA Ti0N
PA ChE <h>zbs
ac tien me
zfem seg-php" thod "pot">
USNnei<inpUt tuee =
ter

na Pas
Passwehd i<input typ Paswehd"

nas
Linput typ "6ubmí cilue "RGGISTER"
geqsten"/

<
lbody7

Lwek|lseg php

$unarL =$PoST'unure
5_PosTPa'J @a9
&conn =
myi-cernect(" localhest", "c6e",'cse
e
"fertbo0f) die (onysi-ee9 ))
corun INSER T
$wsil mysi-py(
logín 2 VALUES (
uname''6 Poo)",0)}
¡e (is set (6 wite))

b3el weekil eg htenl' > click hue to logia

Jaz ",

27
2|td
name Und
A ueb applica he gF tuks
c e
#TML Pager he

if should &end a pa qe wifh Hello you


whe
a 2td
Qu theizp d to vÚsí f thes 6imesto Qge. Lothere
&hould be hep la ce d
wi th th entee d nan Z|td
otthoh wii
it should send welcene fo the sít
nesa ge Ltd
weesl2webAPp. htn cItd
Zhtnl> ctd
chead >
<itle web Arpln <íHle
2head>
cbody7 "weki2 webpp. Lltd
me thod - 'Post" qhey
ten Phpz

eh alig n centn "> Ztal

>
zl bod
ctd Noe )

zltd>
Ltd zNPUF fype week2
zlinput >
Lltd $na
fage

Ctd>At. ect
Ztd fe t
<td><input tyee= to v

clinput
21td

2td

at
ztd
LItd >
ctd algin = "et" F Vaue bubmi
6U bmi
input tri=
tyt
input>
Pp
bp
Zltale7

elbody 7
Zhfn[>
Lweek2 webApP:PhP

I"age "J;
Sa
= -PosT
=
coler
Hello l..$name,
,2 fent thorized
echo not au

to
3

echo Hellel $nane "efont (ole uen


sie:
5>oelcerne to tfhis sit <
lent

27
Weeh-1
ZA web applitatien
K
rst beve d a
login Pag othich takb usey s

and postwed. As
bobmiting the cetai
he
h%
22ve
6ee chechs ese values agamis h the
database ond the tollopin
fahas the
Ond tahes
Anta
data tsen a

decsien t name nd PCSS WSY d mathes


e wi user s ull non#
bewes a welceme Pa
ma tths and passwe7d desn t moth

then bees PaswGhd bsmatih Page


s not found

en page utere usss full nane


a hogis tati
Passwed an
datase,
tullnme in the
weekísL cgin dum D php
chtml
<
titl >loqin<Iftle>
2(head
ne thod = 'Pest" >
i Peonl"
wid 707, borde:
alig n " Cntes
<table
i y" cellspacíng ="!">
cellpadding

= align centoy
e
td colspcn Mem 2 < lh3>2lb>e/td
Login
eh3
=
colspan
= 2
algín cantis'"
tdo
2b>chy> Memhes Login h3</b ><tds

Ztd><ínput nume
=
uname" type fert>

2td Pcssuwehdi 2td >

etd input name = 'pwd" typr =i Passwbd

std>e ltd >


Ztd >einpot tyeA ='Guboíf" name bfnlog"
e >
va
=Login">td

ha
3
L
lonts hy> f0 Regis tera fion a
tut
wekl3 Reqotroten des0phpH>iek
echo
2lten Pas
3
iHCsset ($- PosT btnlog)
etd> $ to
calhtt= (ocalhy
(Cse'
C9e@q99;
o tex tboo k!;
$dbncue
unore
ŠCorun
- ysqli- (ernect (6localhest,

Guname $BP05T [unareJ;

tch assoc zetval)


CG
while (9ow myslite
=

log'"

SessiDn-Stant)
derriophp.
hoade(Location, weei3welcere
3

echo " ccont >cb<font cole= *re d'


Pasawehd Misma tch lont<lb><llentn,
2 td >
domo-php{). td
heo den (' Lo ca hien weekio Reg sta
tio
NA4
Zty
I( echo ccenty> b
font tolen=sed'V
3
=

mysli -clese (Gcon) Ztd

e[body>
clhfrol>
week (3 Registsaiendon 0ph p Atd

Va
Zhea d

c lto
sith> Registraien lfit> zlta
>
4head

ZCen
<tate align t en, width "z0Yo°
70a bosduy=9 L3LO
cellpading 3" cellspacing"">
" cento,
<td colsPn 2
algin '>
26><hUss Registsa ton 4h3>zlb> zta 7

text"
Ltd zein put naume
=fr Czetype
(td
Llty
t
td> USmdrne: z/td>
tdtinput nume=UNn' ty P4="texf"s HHy
4ts
td Passwerd!ltd>
>

ts
Ltd >eltd> "bfneg"
<td>zinput typ=60bmit" hae>
>
td
Vale Regste'=

lto>
ztable>
- week
Llenlos yehyFox Loqin4Herebt la><lh4>
LDLogin Dermophp >click

td 7
rlo calhos
Cse'
Cse @999
(fextbooh'j
d bnom cenneLt( ocalhost
G
Con myli
Gro fpdonane);
fnamy"}
$fname = $Po6 TI
52l > "insuf into persons
4 Vales(tnam
gunart, Gpass')"

echo zntey > <b>font cole= un'>


Pegs toaien Success Pu | font><[b>

echo zcwnby>b>e tont coler red'> Reg.

mysli- clone(6 cenn);

z lbody
/
weeh iy
week
A Ueb aPPli taien hat its all coo hie5 Sto
cliching ist coohey butt
$coo
Add cooki es it necesay fenea
weekle Coo kielistphp ech
27
<headz
>
( hoose ust Coohies <íHf >
Zita
zhead>

<ten achien = "LweLhllDisplaycoohie -php"


=
Mehod "PoGTI>
<inpu tye= GUbní " nane= "ubm(P
=
Vae Ust Cookies/
7

Set cockie (" Naun" ABC")


Setcoohie(Agu"r29');
Setcockie
l"Addres"oelhi )

elbody >
week
coohie php
tfory,
Gcoohie = _ Co okIG:
coohie as
>
Poneach (4 $ he
dval)
echo hy. ;". $val."z by>";
27

You might also like