[go: up one dir, main page]

0% found this document useful (0 votes)
21 views19 pages

Ip All Codes

Djch

Uploaded by

smittttt69
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)
21 views19 pages

Ip All Codes

Djch

Uploaded by

smittttt69
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/ 19

Page No.

ALDELEDUCATION TRUST'S
ST. JOHNCOLLEGE OF ENGINEERINGAND MANAGEMENT
Date

Medule 3
(ocate o htm Page thut aclepts th uscY nume f sheld
be seot to thi Seyvlet. Th strvlt shGld diSplay q
with th nums
specify
2DCTYPE htm)
<htm)>
2head

<lhiad>
2hl> Entr yeuy Wume < h >
My [irvle+ mthod pas)'
-

tet
<inpt typc

2inpt typ 3 Scbmit value Sbmit


<|ferm>
<bedy2
|htral
Ss))
impet
impot_avax Strlt. ServletEcephco
impet iavax.Servlet. anntaten.Wcbscvlt;
impet javax Stvvlet. http. HttpServlet
impct )avax Svlet http. HHtpsrvltRequcsi
import avax. Sivlt. http.Httpsetspnsc,

Public class My[ivlet eatends Httpsnlt


Pratctd veid dofest ( Hrtpítwlt Reqest xquest
ycq
HtpStrv\ct Respense .espunic)
thyeus
Page No

sting vequest.5tPavemter l"nune),


spanse.St lnteot Typ "t t | t l ) ;
);
csponsetwiter ()println ("<hton)> bcdy 7
println("<h>Ho, tnamet
Yes pontjtantr().

wAP to Set epiiy (cch.


Kuncti sitcocrie (nam, Vulue, days To Eapisc
Var date
cdute. set Timdute.Tmc) t(days Ta Zapin * 24

functic Writeleckic)X
Vay nw ncw ate ();
now. SetMenthnow.KetMenth( t ) ) ;
Cochicvale = Scap(documnt. myfcym(us temr.Vule)

t coGhisvaluei
document. CockiC epiry = "
Page No.
ALDEL EDUCATION TRUST'S
ST. JOHNCOLLEGE OF ENGINEERING AND MANAGEMENT

Date

2 WR to un cpiy date

funchieo SctCecnic (coame, (val,edays)


(onst

Capires
dacumnt. cechi t (va lut
+ epìres t path / :

WAP foy
fuctico getCucnic Ccoum)

deeedeURI(cmpcncot
documcat. cucie
t ca
<calengthi itt )

whilec. char At (o)

Vetn
Page No
4) WAR to Ceuntr UY kt

undefined"){

I;
VaY (eunt parse Iot Sesscn Stra1t .Visi) Ceunt ) t
Scssicns turasc visit(ount

:visit Cent :
dcumnt. qctElemit By Td( visit Cauntr)ionr HTML

}else documenttElemetId (visit(eun ter) ionr


HTML :

dapkyd.;

S) wAP to demensrte ses to unnt jeva cppcatcn te


datubase ot yeur chorce.

Pubte class Fivst Exumpk


dbe;mysql:)lcal hest lITP";
Static final String D- uRL:
Static Final Sing USER 5s"
Statc Final st'na PASS
Steti'c (nal Shing QUERY "sELECT i ,fvst, last,ase
FRCM Epleyrs
Public Stuthe verd main ( stns ags )
4y (cennten Cenn OiveMgrsetcenncetien(0suRL, USER,
Ltatm( nt Stnt Cenn Cyeete stetmet O;
Resutset YS
while (rs:net ()){

Sskn.c t printlnlast! t Ys 5etshnses),;


} Catch (SoLEuptten )}
Page No.
ALDEL EDUCATION TRUST'S
ST. JOHN COLLEGE OF ENGINEERINGAND MANAGEMENI
Date

Simpl 3sP prgvum to dspkay dute

Var (umentutt

cleuy
Voy month cument Dateset Menth()tli
VaY yeaY cuwent Dte stFu}Year O

t tmonth + +ycar;
"Cwrent Dat! t furmattclDate );

7 WAP to rcac HTML ferms input text fvee velues io Ts?


2DocTYPE htm >
<ht)>
head>
fem Ioput valS <) H+l
<|headz
LbudyZ
2h|> Entr y Detuils |h
myfem

tuat" nam

<labe| fes : Cmai|

4 inpt typ cmai)


Page No
: Subrmit
<input type :Submit" Valuc
<fem
<scvipt
Lbedy
2lhtm>
Scviptjs

fem add EvetLiihny("SUbmit


Fnticn Cevent)
vent. PrvcotOefaut ();
Vay
Vuy cmail

Consels. les CNam! + nami)

Censelk .lea( Ane:" +

6) WAP
designi
TC'strutien f m TSP.

chead>

<heod
<bedy7
<femmid= Yegseticn fem">

name:Ustmm

coai)"Emeili |labl>
email"
reqiy cl
Page No.
ALDEL EDUCATIONTRUST'S
ST. JOHN COLLEGE OFENGINEERING AND MANAGEMENT
Date

2labe Pesuevc>> Passucrd


< inpt typ:

<input yp : Submit Vclur

SYc scvpts<lsenpt>
2|bedy >
htonl>
(seip js)

Var Yegßheatienfem
(xg'shetien Femm),
ishathicofm odd EventLstncrSubmi}nctico (eveo+)
(vcot. prevent fault ( ;

VaY USrnamnc Yey3heHen furm clemen Usermame Value,


Vax mai

Censole lesUsemee
cmail);

jst dcmnyhtic

Ccnsele les"Ras(wevd i t pascuevd);


Page No.
ALDELEDUCATION TRUST'S
)ST. JOHN COLLEGE OF ENGINEERING AND MANAGEMEN
Date
MoclueS

chck whthtY

php
functe

cphp
$num yead|sa Enter thr numbr

while

totul rm

num

echo

ccho No Snum is net

WAP to acept frem SeY


2htm)>
head

cbudy >
Page N
<fem methed PosT">

input type numdernum


<input typ SbmitÔcme "Submit velt

iEC-PasT)
feuct-l)
echo

ccho $fuct by ")

Q)WAP tu drplay thc Seuaes ond


2! Do(TYPE htm)
<htm)>
chead >

2hcucl
Lbedy>
2tuble bydey "" >
2t

<tH Cuhe lth>


Lltr>

<lteble7 <Inta >


Page No.
ALDEL EDUCATION TRUST'S
ST. JOHN COLLEGEOF ENGINEERING AND
MANAGEMENT
Date

WAP PHP

<heacl>
2iH Fibunacci

bcdys
Cibenacilenes <lh)
2phe

ccho Aban acci Seits:


ccho

ccho Sot tem


$trml
tom $nzttim)

clbdy>

WAP fo print the

funchen Using Pussina axgucmns by vckicnc


2?Php
Page N

4 Sum Caleuate Sml nmey | , number 2);

Ccho
echo Sum! Sum

butput ,

dsplay Sheens num usns tnlex

lheacd >

<|heacd
cbedy7

$ Shdents zaway shve,Ram",Aler", "`Gcb "e


Ccho

ccho

ccho <lol>";

<lbedy>
Page No.
ALDEL EDUCATION TRUSTS
Page No ST. JOHN COLLEGE OFENCINEERING AND
MANAGEME
Date

WA P to

(empact fncttn.

$ date aay ( )

nem

City

ex hruct ( dtu );
echo Name: $nam <by> ;
cho Age
Ccho City:

Ccho Shufflecd fit !


feveach (Sfts as sfit)
ccho

I| empuct
fostNcme Aic

Jast Nem Smith;

ase );
- CempcutEostNc me , lastNam,

ccho
priat yCusnfo);
Page No

) WAP te CvLate
2!DoCTYPE htm

-USemame) USlrnume
tet" USemune"umeUScYn4me aved

2inpt yp"Passwerd" idPuswovd nume:Puseevd'vequird

inpt ype -SUbmit

<) bedy

login php

if Cisst(s. aeT['USumane] 83sctC-6ET[Paseg)


= - GET LUsmumt]:

dem"
eho
SuccessFul

lusin feled rhy


)
Page
No

ceelhis
S/st

SetceeCfeveele
echo SctecchiCfenceley WAP
if echo Sitcuchi
USernum
Stcechi
uscame Se_ccehTE"UsemameU))3
cho C iECissc+(
(isset echo
the
ccho cho
leler
Fuv
(sccclrJE
Ccehi
Nc
Usmcm
fav L

-
(eler
Php,Otlh
Set ev- ev-cele
und
feay3600, -
celev
cey

ar
cleleted
lasstA
chssMte
Dote

WAP
ascssieo st thessoen yeicbl

4-SESsION LUsenume Jeho


- SESSIOW Lusr- id
i123tS,
echo
Stssn Vanbles arr st.

WAP

-seSsJoN L' usename Jeho

eho Scssien Vencbluy are set.

- SESS JON
emai) jchn. am

WAP t

Sexnamc lecalhet

Pusswerd yeuy -Pastwerd;

Cennecten feiled.
Semt
ttuse
classmata
Data
Page

CYcate Datbase my db

Datubesr Cratecd.

echo Erey

Cveete Tabl user


JNT AUTO. ìncrcment Pimay ey ,
Vexchay ()SS) NeTNULL,
Cmai) VeihuY Cs5) Ne TNUL

cche Table crecabcd Suecssfnly

eche

INSERT Useys (surname email)VALUES


hoho@.cem)

ccho Data ntcc


else
ccho Eer e clete
p

<L
WAP phe snpt t dopby
detescs

Scenn’ennat -uny,;

Sssl she Te5es FRen useys

cIse

ccho
cdussmate
Date
Page

euct. it hello weld Cempcnot


imt Reect YAact

Yhm
<div >
2h2 telle
<ldiv

2prt cle Celt Apo

imprt Reect em at
Yact - dcm

Fren App

2Reaet. stetmele >

Jeumt.

te ru)

You might also like