douhezhang8932 2014-04-04 15:00
浏览 39
已采纳

保存表单中的数据

Already have a functioning website built with HTML, CSS, JavaScript and PHP for sending information from a contact form. Now have another basic form that visitors can submit information for us to contact them regarding a product launch in the near future.

Form is currently built using HTML and input fields (see below)

<input id="phone2” type="text" name="phone" placeholder="Phone Number" />

We need to collect this data and store it in a database. Is the best way to do this using Rails? Any advice is appreciated.

  • 写回答

1条回答 默认 最新

  • duanba4942 2014-04-04 15:07
    关注

    If your existing site is flat files meaning PHP and HTML are mixed into both and no MVC framework is used then I would recommend just applying you custom php code when the form is submitted, so on $_POST capture the data and submit to the DB, job done.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥60 Matlab联合CRUISE仿真编译dll文件报错
  • ¥15 脱敏项目合作,ner需求合作
  • ¥15 脱敏项目合作,ner需求合作
  • ¥30 Matlab打开默认名称带有/的光谱数据
  • ¥50 easyExcel模板 动态单元格合并列
  • ¥15 res.rows如何取值使用
  • ¥15 在odoo17开发环境中,怎么实现库存管理系统,或独立模块设计与AGV小车对接?开发方面应如何设计和开发?请详细解释MES或WMS在与AGV小车对接时需完成的设计和开发
  • ¥15 CSP算法实现EEG特征提取,哪一步错了?
  • ¥15 游戏盾如何溯源服务器真实ip?需要30个字。后面的字是凑数的
  • ¥15 vue3前端取消收藏的不会引用collectId