พูดคุย phpBB3, SMF ปัญหา การติดตั้ง ปัญหา การลง Mod การแก้ไข หน้าตาบอร์ด การใช้งาน Joomla 1.5, 1.6, 1.7, 2.5 ,3.x รวมถึง Joomla 4 การใช้งาน wordpress และ CMS อื่นๆ
การตั้งคำถาม ควรระบุรุ่นที่ใช้ ในการตั้งคำตามด้วย นะ เช่น SMF 1.1.4 หรือ SMF2.0, OpenERP, Odoo และ รายละเอียดของ server OS, php เวอร์ชั่นไหน ฐานข้อมูลอะไร
Moderator: mindphp
กฎการใช้บอร์ด
คำถามหมวดนี้ ควรระบุ รายละเอียดของ Server OS, เวอร์ชั่น ของ PHP, CMS ที่ท่านใช้
รวมถึง Hosting หรือ Control Panel Hosting
Raja Pdl
PHP VIP Members
โพสต์: 2241 ลงทะเบียนเมื่อ: 27/05/2024 9:50 am
โพสต์ที่ยังไม่ได้อ่าน
โดย Raja Pdl » 04/11/2024 1:18 pm
I'm trying to make a field disabled in phpBB3.3, but when I set it to "disabled," it saves as "0" in the database. Here's my code:
โค้ด: เลือกทั้งหมด
<input type="text" name="number_bar" id="number_bar" class="inputbox medium" value="4" placeholder="{L_NUMBER_OF_BANDS_PLACEHOLDER}" disabled>
Can I make the input field readonly so that it saves the value as "4" in the database and the user cannot edit it?
โค้ด: เลือกทั้งหมด
<input type="text" name="number_bar" id="number_bar" class="inputbox medium" value="4" placeholder="{L_NUMBER_OF_BANDS_PLACEHOLDER}" readonly>
Will using "readonly" affect any other functionality, or is it safe to use in this case?
version - phpBB3
แก้ไขล่าสุดโดย
Raja Pdl เมื่อ 04/11/2024 2:22 pm, แก้ไขไปแล้ว 1 ครั้ง.
eange08
PHP VIP Members
โพสต์: 24595 ลงทะเบียนเมื่อ: 22/12/2020 10:09 am
โพสต์ที่ยังไม่ได้อ่าน
โดย eange08 » 04/11/2024 1:43 pm
Do you need this input field to be editable? If it doesn't need to be editable, you can use readonly, which won’t impact other functions.
Raja Pdl
PHP VIP Members
โพสต์: 2241 ลงทะเบียนเมื่อ: 27/05/2024 9:50 am
โพสต์ที่ยังไม่ได้อ่าน
โดย Raja Pdl » 04/11/2024 2:22 pm
eange08 เขียน: ↑ 04/11/2024 1:43 pm
Do you need this input field to be editable? If it doesn't need to be editable, you can use readonly, which won’t impact other functions.
No, it doesn't need to be editable. I will use "readonly".
Thank You
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 1