我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

将表单提交更改为PDF或图像文件[关闭]

I have an HTML/PHP form that needs to get converted to a PDF or image file and would like it to be stored into an SQL Database on submission. How would I go about doing this?

You can send it to a php script via the 'action' attribute on the form and generate the pdf file on the server. Then you can either save the pdf location on the database, or save the whole pdf as a BLOB type.

Some reference:

http://php.net/manual/en/book.pdf.php

http://dev.mysql.com/doc/refman/5.5/en/blob.html

近期文章

  • 计算一个类别中的所有子类别
  • PHP类无法访问包含的变量
  • 从父的静态方法返回子类
  • $ foo-> bar :: garply()的正确PHP语法是什么?
  • PHP Foreach用于从数据库发送电子邮件?
  • 将URL转换为正确的文件名(Linux / Windows)
  • Laravel carbon createFromFormat增加1年
  • 如何使zend框架2高级路由
  • 使用if语句来改变foreach循环
  • 使用'glob'显示没有扩展名的文件?
  • 使用SQLite从特定月份获取记录
  • 使用Codeigniter查询朋友/博客数据库
  • MySQL总结了关系数据库中的数字
  • 以字符串形式获取Array中对象的属性
  • 在PHP中自动维护每日日志文件?
  • 通过php附加一个或多个gif动画
  • 了解filter_input及其属性
  • 从MySQL数据库中检索转义数据
  • PHP:根据结果设置表格单元格背景
  • PHP在文本文件中的两行之间添加行

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华