HTML <button> formenctype Attribute
ဥပမာ
ပေးပို့ရန် ခလုတ်နှစ်ခုပါသော ပုံစံတစ်ခု။ ပထမ တင်သွင်းရန် ခလုတ်သည် ပုံသေ အက္ခရာ ကုဒ်ဖြင့် ဖောင်ဒေတာကို ပေးပို့ပြီး ဒုတိယ အနေဖြင့် စာလုံး ကုဒ်နံပါတ် မပါဘဲ ဖောင်ဒေတာကို ပေးပို့သည်-
<form action="/action_page_binary.asp" method="post">
<label for="fname">First name:</label>
<input type="text" id="fname"
name="fname" value="Ståle"><br><br>
<button type="submit">Submit with character encoding</button>
<button type="submit" formenctype="text/plain">Submit without character encoding</button>
</form>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ရည်ညွှန်းချက် သည် formenctype
ဆာဗာသို့မပို့မီ ဖောင်ဒေတာကို ကုဒ်ဝှက်ထားရန် သတ်မှတ်ပေးသည်။ ဤရည်ညွှန်းချက်သည် ဖောင်၏အရည်အသွေးကို လွှမ်းမိုးထားသည် enctype
။
formenctype
ရည်ညွှန်းချက်အား ခလုတ်များဖြင့်သာ အသုံးပြု သည်
type="submit"
။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် attribute ကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးပါသည်။
Attribute | |||||
---|---|---|---|---|---|
formenctype | 9.0 | 10.0 | 4.0 | 5.1 | 11.5 |
အထားအသို
<button type="submit" formenctype="value">
ရည်ညွှန်းတန်ဖိုးများ
Value | Description |
---|---|
application/x-www-form-urlencoded | Default. All characters will be encoded before sent |
multipart/form-data | This value is necessary if the user will upload a file through the form |
text/plain | Sends data without any encoding at all. Not recommended |
❮ HTML <button> တဂ်