dpf5207 2016-04-05 09:50
浏览 125
已采纳

如何使用隐藏字段进行多表单提交

I have a form that i want to filled up by the end user in few steps. in the first step i want to let them fill Name,Address,Mobile number. And when click next button i want to appear another part of the form to fill the other details such as upload a image . i did research online,i found 2 articles useful, One thing is about sessions and the other thing is about hidden fields. In my opinion i think sessions are not a good way to use for form submitting.Because some browsers are might have disabled sessions. So ill go with hidden fields.

In my database i have a unique id which is auto increment.What i want to do is to let user to submit a form.In the first step i want them to submit their name,addres,mobile number(In this time it is inserting data to the database- Only for couple of columns.) And in my database i have a field for upload a image.In the first step it gets a null value.I want to update that null value in the next step by getting a that id from the first step

Please give me the basic idea to start this.A little help much appreciated! Thanks in advance

  • 写回答

3条回答 默认 最新

  • duancheng8000 2016-04-05 09:59
    关注

    you can try like this:-

    You can add a class on the input which you want to hide

    <input type="text" name="example" class="inputHidden">
    

    after that add style in your page like this

    <style>
    .inputHidden{
        display:none;
    }
    </style>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元