PHP-and-MySQL/C4/Sending-Email-Part-1/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:00 Khublei ngi pdiangsngewbha ia phi. Mynta ka sngi ngan hikai ia phi kumno ban shna ia ka email script kyrpang eh haba phi register ia u user sha ka website.
00:12 Kumno phi phah email sha ki ban pynthikna ba ki lah dep register. Ngan leh ia kata da kaba shna ia ka script - ka "Send me an email" script.
00:24 Kane kan dei ha ka HTML form ha kaba phi lah ban thoh ia ka subject bad ka message bad phah sha ka address ba la ai.
00:34 Te , ngin ia shna ia u $address variable.
00:39 Ngan type ia ka "hotmail" address jong nga hangne.
00:48 Phi lah ban iohi ynda nga plie ia ka "hotmail" page jong nga ba mynta bad nion ha ka "Inbox", kim don ki email hangne, na nga.
00:55 Kim don ki email ba thymmai ha kane ka khyllipmat.
01:05 Te, kane kadei ka address ha u address variable jong nga. Ngan jer kyrteng biang ia u variable kum $to.
01:13 Ngin pyndonkam ia ka mail function ban phah ia kane.
01:17 Ngin don ia ka from bad ka subject hangne.
01:21 Ngin don ia ka standard $subject kaba ong "Email from PHPAcademy".
01:32 Kaba bud , ngi donkam ia ka HTML form kaban submit bad ngan shna ia kaba lah phah submit hi dalade.
01:39 Te, to ngin buh katto katne ki html code hangne. Ngan don ia ka form hangne kaban submit sha ka page ryngkat bad ka "send me an email dot php".
01:54 Ka method kan sa dei ka POST.
01:59 Ngin pynkut ia ka form jong ngi hangne.
02:02 Ki user ki lah ban type hapoh katba ki kwah ban phah sha ka email address ba la ai hangne.
02:10 Khlem pep phi lah ban buh jingmut ia kane. Haba shna ia ka form, phi lah ban ong phi kwah ban phah sha kane ka address bakyrpang.
02:18 Kane kan sa shu dei ka "send me an email" script- ka email kaba phi kwah ban kynthup lang ha kawei na ki website jong phi.
02:27 Mynta ngin don ia ka "text" input.
02:31 Kane kan sa dei ka kyrteng jong u briew ba phah email ia nga.
02:34 Te, phi don type "text" kaba ka name kadei "name".
02:39 Ngin don "max length" ia mynta ba iaryngkat bad 20.
02:45 Hapoh jong kane ngin shna ia ka text area.
02:49 Te, ngan type "textarea" bad pynkut ia ka kumtei.
02:53 Nangta ngin name ia ka kum "message".
02:59 Ngi buh ia ka paragraph ha kaba sdang bad ka paragraph ha kaba kut hangne.
03:04 Bad hangne hapoh ngin shna ia u submit button uba u value u iaryngkat bad "Send"
03:14 Lane.... "Send me this", biang?
03:17 Te , lada phi wan sha ka page jong ngi bad jied ia kane ka page hangne,
03:21 Kane kadei ka jaka na ka bynta ka kyrteng bad kane kadei ka jaka na ka bynta ka message.
03:25 Te, to ngan buh ia ka "Name:" hangne bad "Message:" hangne
03:31 Bad kane kan sa kham i biang mynta. Ngi don ia ka name box jong ngi bad ka message box jong ngi.
03:38 Bad haba ngi nion ia une u button, ka email kan sa send.
03:44 Biang, te nyngkong eh, hapoh jong ka php code jong ngi ngi donkam ban check lada lah nion ne em ia u submit button.
03:53 Na ka bynta kata ngi don ia ka if statement hangne ha ki parenthesis bad ki curly brackets na ka bynta ka block jong ngi , lada ka condition kadei TRUE.
04:01 Ka condition kan dei hapoh kine ki parenthesis.
04:05 Ka Condition kan dei ka POST variable jong u "submit" button.
04:15 Katba u submit button u don ia u value.... ka jingbakla spelling...
04:19 Te katba la nion slem ia u "submit" button, une un sa don ia u value bad uta u value udei "Send me this".
04:30 Kata kan mut ba ka form lah dep submit namar u button lah dep nion.
04:37 Te, hangne hapoh ka kam banyngkong ba ngi donkam ban leh kadei ban ioh ia ka data na ka form.
04:44 Bad kata kadei ka kyrteng jong u briew ba phah ia ka email da kaba submit ia ka form.
04:49 Bad ka kyrteng jong ki ka don hapoh kane ka form hangne – map ia nga kane ka field hangne ba kyrteng "name".
04:56 Kumjuh ruh ngi don ia ka $message te ngi lah ban duplicate da kaba suk ia une u variable structure bad ong 'message' hangtei.
05:08 Ban test ia kane, ngan ong echo $name.
05:12 Bad ngan pyniasnoh ia ka $message ha katei.
05:17 To ngin shu test ia kane. Hangne ngan type "Alex".
05:21 Bad hangne ngan type "Hi there!"
05:23 Nion "Send me this" bad ngi ioh "Alex" bad "Hi there!" hangtei hajrong.
05:28 Biang te, ngi tip ba ka form data lah dep submit ha ka rukom badei.
05:33 Ha ka bynta babud jong kane ka video, ngin sa pule kumno ban pynshisha ia kane bad kumta ban send ia kane ka mail sha u user ha kane ka email – id hangne.
05:42 Te, sa iasnoh bad nga ha ka bynta babud. Khublei shibun.
05:45 Nga i Meboreen na Shillong nga dubbed na ka bynta ka Spoken Tutorial Project.

Contributors and Content Editors

Meboreen Mary