如果只是將用戶輸入的數據存入數據庫,不知道樓主是否能夠實現?
如果可以實現這個步驟,剩下應該比較簡單呀。
如果要在前臺完成,可以在用戶提交表單的時候,通過 JavaScript 來將 h_mc 的值改為倍數后的,即 h_mc.value = h_mc.value * 250 (假設 h_mc = document.getElementById("h_mc"))。
如果是在后臺程序那里,可以將變量中存儲的值乘以倍數,即 h_mc = h_mc * 250 (假設 h_mc 是你用以保存 h_mc 這個文本框的值的變量)。
還可以在新建數據記錄的時候使用,例如
INSERT INTO tbl (h_mc) VALUES (" & h_mc * 250 & ");
Blog 暂时关闭中,不便之处,见谅!
Dear god,
I know that she's out there, the one I'm suppose to share my whole life with.
And in time, you'll show her to me.
Will you take care of her, comfort her, and protect her until that day we meet.
And let her know, my heart is beating with hers.
|