当用户通过系统填写表单时,如何使自动大写


How to make auto uppercase when the user fill up a form through the system

我需要一些帮助,我想使单词在用户填写表单时自动大写字母/大写.. 我尝试使用 style="text-transform:uppercase" .. 是的,单词将自动大写,但在数据库中,通过表单保存的单词仍然是小写的.. 我不知道出了什么问题.. 有人可以帮助我吗? =')

<p>
    <span>NRIC/Passport No.</span>
    <input height="9" class="contact" type="text" name="no_ic" value="" style="text-transform:uppercase" />
</p>
<p>
    <span>Email Address</span>
    <input height="9" class="contact" type="text" name="admin_emeil" value="" />
</p>
<p>
    <span>Username</span>
    <input height="9" class="contact" type="text" name="username" value="" />
</p>
这是

用PHP完成的。我不知道你的PHP脚本是如何连接的,但你可以使用no_ic获得大写字母

$no_ic = strtoupper($_POST['no_ic']);  // ABCDE