dsa122870 2010-08-02 14:34
浏览 4
已采纳

PHP:按原样重新发布POST或应用不同的样式表而不重新加载

How do i repost post data, so that i can generate a print preview of a page, by applying a different style sheet. GET is not an option as the data can exceed url length limit.

Here is the premise, FORMPAGE posts data to RESULTSPAGE, RESULTSPAGE has a print preview button which reloads the RESULTSPAGE page and applies the print style sheet, so that the user can see the preview in the browser before printing. Currently I was Passing the form data via GET (resultspage.php?value=print&data=data), however this won't do for larger amounts of data.

The manual option is to collect all the post data and pass the data through hidden form fields or perhaps use CURL, although I cant seem to visualize how that will work.

JSP has a Request Dispatcher, i guess

  • 写回答

3条回答 默认 最新

  • doudouji2016 2010-08-02 14:38
    关注

    I think this article might help you switch the stylesheets : http://www.alistapart.com/articles/alternate/ See the setActiveStyleSheet() function

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

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?