dongnao3990 2010-11-26 15:58
浏览 34
已采纳

如何在表单中进行可变分页?

i have page that contains a form, it works fine. but i want to add pagination to it. i've found an pagination example on the web. but, when i change the page, the values from the form are discarded, and i have to recomplete the form on the page that i want to.

i want to add pagination for 50 or 100 rows.

Any tips?

thanks, Sebastian

EDIT

i do submit the form. i want to use any way to paginate. add a drop box in the form, or an live drop box, below the table. after i submit the form, a table is printed with the entries from my database.

  • 写回答

3条回答 默认 最新

  • dongyue110702 2010-11-26 16:29
    关注

    I don't think he's submitting the form, but clicking a link?

    Whatever, as Swhistlesoft points out, you need to carry over the form values into the next page.

    If you're not submitting the form to load the next page, instead just clicking a "NEXT" link your best bet is probably a javascripted onclick event to add the contents of the form to the link as a $_GET[] URL rewriting appendage thing.

    ?page=2&formvalue=x&formvalue2=y&formvalue3=foo etc.

    then of course you'll need to get the landing page to re-insert this data into the form on generation.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料