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条)

报告相同问题?

悬赏问题

  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊