Yuav Ua Li Cas Sau Ib Daim Ntawv Rau Ntawm Lub Xaib

Cov txheej txheem:

Yuav Ua Li Cas Sau Ib Daim Ntawv Rau Ntawm Lub Xaib
Yuav Ua Li Cas Sau Ib Daim Ntawv Rau Ntawm Lub Xaib

Video: Yuav Ua Li Cas Sau Ib Daim Ntawv Rau Ntawm Lub Xaib

Video: Yuav Ua Li Cas Sau Ib Daim Ntawv Rau Ntawm Lub Xaib
Video: Yuav ua li cas thiaj thov tau daim ntawv tso cai los qhib business nyob rau lub nroog Minneapolis 2024, Hlis ntuj nqeg
Anonim

Daim foos rau lub xaib tau dhau mus rau hauv Is Taws Nem. Cov ntawv yog siv los ua cov ntawv xov xwm, xaj cov ntawv, video qhia, thiab ntau yam ntaub ntawv. Cov ntawv yog cov chaw tshwj xeeb ntawm thaj chaw nplooj ntawv, nyob rau hauv uas tus neeg tuaj saib lub tsev kawm ntawv raug caw kom nkag mus rau cov ntaub ntawv lossis xaiv cov haujlwm tshwj xeeb los ntawm tus lej thov. Thaum tsim cov foos, koj tuaj yeem tau txais los ntawm cov ntawv tshwj xeeb, tab sis peb yuav sau nws sau nws thiaj li nkag siab tag nrho cov thev naus laus zis ntawm kev ua haujlwm thiab cov qauv hauv daim ntawv.

Yuav ua li cas sau ib daim ntawv rau ntawm lub xaib
Yuav ua li cas sau ib daim ntawv rau ntawm lub xaib

Nws yog qhov tsim nyog

  • 1) Html site file
  • 2) Kev paub txog cov hauv paus ntawm HTML
  • 3) Kev paub ntawm PHP cov hauv paus

Cov Lus Qhia

Kauj ruam 1

Cia peb pib tsim daim ntawv ntawm lub xaib. Daim foos yuav yog ntawm cov qauv hauv qab no: npe, lo lus zais, chaw nyob hauv email, ntaub ntawv xov tooj, hom kawm. Cov. daim foos yuav siv rau cov kev kawm video.

Qhib cov ntawv html thiab pib nkag rau cov lej. Daim tag ua lub luag haujlwm tsim daim foos yog "daim foos". Peb sau tus cim nrog rau cov cim "daim ntawv txiav txim =" obrabotka.php "txoj kev =" tshaj tawm "lub npe" forma1 ". Cia peb pib tsim cov ntsiab lus. Yuav luag txhua lub ntsiab yog tsim los siv cov cim npe, thiab nws "hom" tus cwj pwm, uas yog lub luag haujlwm rau cov ntaub ntawv hom, piv txwv li ntawv nyeem, lo lus zais, thiab lwm yam. Peb ib txwm muab lub npe "lub npe" rau ib qho ntawm cov cwj pwm.

Peb sau ntawv rau: "br" Sau lub npe: "br"

"lub npe nkag =" fio"

"br" Nkag rau lo lus zais: "br"

"lub npe nkag =" dhau"

"br" Sau E-mai: l "br"

"lub npe nkag =" email ".

Kauj ruam 2

Tom ntej no, peb tsim cov xov tooj cua khawm xaiv cov khoom siv. Lub xov tooj cua xov tooj cua yog cov qauv tsim uas, thaum nias nrog tus cursor, tig rau, thiab lwm lub xov tooj cua xov tooj cua tau muab tua. Cia peb piav qhia nrog tus piv txwv ntawm peb daim ntawv. Thaum muab kev txiav txim ib chav, qhov kev xaiv yuav muaj CD lossis DVD discs, koj yuav tsum xaiv ib qho. Tus cwj pwm "hom" - "xov tooj cua" yog lub luag hauj lwm rau kev tsim cov khawm ntawd. Peb yuav sau tib lub npe rau hom xov xwm, yog li peb yuav qhia cov "ntaus nqi" ntaus ntawv kom tus tes hloov qhov ntsuas tus nqi sib txawv. Peb sau npe txoj cai: "br" Xaiv qhov kev xaiv cia hauv nruab nrab: "br"

"cov npe tawm =" disc "tus nqi =" cd " CD "br"

"cov tswv yim lub npe =" disc "tus nqi =" DVD " DVD "br"

Yog tias "tus nqi" tus qauv raug teeb tsa rau cov ntawv sau, tam sim no daim ntawv yuav saib tus nqi uas peb tau muab rau tus cwj pwm no. Piv txwv li, yog li ntawd nyob rau hauv daim ntawv ntawm tag nrho lub npe muaj qee tus neeg lub npe (tus nqi = "npe").

Kauj ruam 3

Cia peb mus rau tsim ib qho qauv hauv qhov uas koj tuaj yeem ua ntau qhov kev xaiv Cov ntsiab lus ntawd tau tsim los siv hom = "khij". Peb sau npe txoj cai:

"Br" Qhia cov hoob ntawm kev txaus siab "br"

"cov tswv yim npe =" ch1 "tus nqi =" yog " Kev txhim kho lub vev xaib "br"

"cov npe tawm =" ch2 "tus nqi =" yog " Phau ntawv ua tau chav kawm "br"

Yog tias koj xav tau, koj tuaj yeem tso lub npov kab ntawv tsis raug, rau qhov no peb tsuas yog sau cov lus zom hauv qhov "tswv yim" tag. Peb muab tshuaj (tus nqi = "yog") raws li qhia hauv qhov chaws, kom tsis txhob tau tsis meej pem thaum tsim php.

Peb tam sim ntawv sau npe hom kev xa khoom siv siv "xaiv" cim npe:

Qhia tseeb hom kev xa tawm "br"

"xaiv npe =" xa"

"kev xaiv" Qhov Ceev

"kev xaiv" Li qub

"/ xaiv" "br"

Tom ntej no, peb ua teb rau cov lus lossis cov neeg siv chaw nyob. Daim pib "textarea", cov cwj pwm ntawm cov kab no yog "kab" thiab "cols", uas yog lub luag haujlwm rau qhov loj ntawm daim teb no.

Nkag mus rau koj qhov chaw nyob thiab sau cia

"textarea npe =" add_text "kab =" 5 "cols =" 30"

"/ textarea"

Tsim cov pob kom xa ntawv siv cov cim paub: "input value =" Xa " Tsis txhob hnov qab kaw "daim ntawv" tag

Daim ntawv tiav lawm
Daim ntawv tiav lawm

Kauj ruam 4

Peb pib tsim obrabotka.php ntawv, qhib thiab sau npe

"? Yog (! Isset ($ ch1)) {$ ch1 =" tsis yog ";}

Yog hais tias (! Isset ($ ch2)) {$ ch2 =”tsis yog”;}

xa ntawv ("tus neeg xa ntawv", "cov ntawv kawm (xaj daim ntawv xaj, piv txwv)", "cov ntsiab lus ntawm tsab ntawv, (tus neeg muaj npe $ fio uas tau teev tus password $ pass, qhia nws qhov chaw nyob email - $ email, xaiv cov xov xwm kev xaiv $ disc, qhia tias nws xav pom ntawm daim disk cov kev kawm hauv qab no: / n chav kawm tsim lub vev xaib - $ ch1 / n chav tsim cov phau ntawv $ ch2, qhia hom kev xa khoom - $ xa, qhia $ ntxiv_text raws li tsev nyob thiab sau ntawv.)”); ?"

Daim foos tau npaj lawm.

Pom zoo: