ItisgoingtosetthosevaluestwovariablesthatwecanuseinPHPandthatisgoingtosendsimplyprintoutthosevaluesonthescreennowisimportanttounderstandthatassoonasyouturnanythinginto a variablewithinPHP, youcandoalmostanythingyouwantwithit.
Sotodaywe'regonnabeprintingitoutto a screen.
Butitisjust a Z Z.
Toputthatinformationto a fileorsubmittedinto a databaseordosomethinglikethat, we'rejustsimplyprintingoutonthescreen a daytokeepthescriptsimplesothatyouunderstandwhatisgoingonNow.
Itisimportant, understand, wheneveryou'regoing, becreating a fullfledgedwebappthatyoudon't useonespecificlanguagetocreatetheapp.
Now, thisiswhy I couldbe a littleconfusingfornewpeoplewhenyouhearaboutHTMLprogrammingbecause a lotofpeoplelosetheirmindswhentheyhearoldtimerslikemetotalkaboutHTMLprogramming.
BecauseHTMLis a markuplanguage, it's not a programminglanguage.
Well, thethingisagaininthepracticalworld, itgets a littlemorefuzzyaroundtheedgesbecauseyoucreateforms.
Sodoremember, withthiseverythingthatwedotoday, youcouldtakethesevariablesandwriteitto a file.
Youcouldwriteitto a database, somethinglikethat.
JustfoureaseofexplaininghowthisworksweresimplyjustwritingthisouttotheWebbrowsersothatlet's goovertothecomputer s so I canshowyouhowthisworks.
Now, I don't normallyshowyouthefinishedproduct.
Inthebeginning, I rathershowyouthecode, butthere's a littlebitofcodethatgoesintothis s So I thinkif I showyouthefinishedproductfirstwhenwegothroughandtake a lookatthecode, thecodewillmake a littlebitmoresense.
So, asalways, we'regoingtogotoSilicaDojoandtheformthatwe'regoingtobegoingto.
So, likeif I selectbothfirstandsecondshiftandhitsubmit, you'llseethisherelooks a littlebitugly, butagain, thisthisisthedifferencebetweenhavingcodethatfunctionsversuscodethatlooksgoodagain.
Rightnowwe'rejustgonnatrytokeepitsimpleforyou.
Sowiththat, let's gooverandlet's take a lookattheformitself.
So I'vecalledthisformdotPHP.
Technically, youcouldmakeithtmlorhtup.
I justfigureifyou'regonnabeusingPHPscripts, justkeepeverythingisPHPmakes a littlebiteasiertounderstand s Oh, thisisjustsimplycalledformdotPHP.
Code 011665550 Right, becausewhen I as a user, I'm sayingsmall, mediumlarge.
I'm justthinkingaboutthesizeforyou.
Ifyou'reactuallyhavingtoorder a productbyputtingthe U P C codeortheeyesbeingorwhateverkindofcodeintherethatmaymakeiteasiersothatwhensomebodyselectsthat, thatcanthendosomethingsuchasautofire, anorderfrom a vendorthatyou'reusing.