doumao1887 2015-01-31 08:36
浏览 12
已采纳

关于Mysql和Php以及表单

I want to insert a + or - sign along with the database value in to the mysql while inserting from form in php? it should be added only in database but not in the form

Thanks in Advance

  • 写回答

1条回答 默认 最新

  • douyi1341 2015-01-31 09:11
    关注

    If I understand your question correctly, you want to just add a + or - sign along with the value a user puts in a form?

    You can either add a hidden section to your form and put the value in and add that to whatever you want, or you can add it in server side.

    Client Side Form

    <input type="hidden" name="Sign" value="-">
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面