dongzhuange2625 2011-10-20 19:32
浏览 57

有没有一种简单的方法来处理PHP的表单?

Dealing with forms in PHP has always given me major headaches. Primarily formatting; handling punctuation inside a form input, manipulating strings for database insertions, stripping when retrieving from database, etc.

Is there an easy alternative to strip_slashes and all that junk? I don't want a tool like a form wizard that does everything for you - I still would like a high level of customization. What would be nice though is a tool that says "I want this text field to connect to this database field.", then it handles all that tedious work.

  • 写回答

2条回答 默认 最新

  • duanchu9914 2011-10-20 19:34
    关注

    Look up PHP PDO. It makes it quite nice to handle all of the database stuff. As for mapping forms. . . You'd need another application (if one exists out of the box) to handle that.

    评论

报告相同问题?

悬赏问题

  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 matlab求解平差
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办
  • ¥15 vue2登录调用后端接口如何实现
  • ¥85 永磁型步进电机PID算法