dsfgdsjfd78773 2018-06-22 08:29
浏览 52

将数据发布到当前页面进行验证,并将发布数据传递到第二页进行处理

I have a situation where I have a form on multiple pages that all post their data to a "thank you" page with code that emails the data to me.

Validation failure I need to do php validation on the page the form is on so that if one of the required fields isn't filled in, I can reload the page with the form fields pre-populated with the info the user input.

Validation success If the validation passes I then need to send the data to the "thank you" page to be emailed to me

I have no idea if this is possible. If there's a better way of accomplishing what I'm trying to do, suggestions are welcome.

Better explanation?

  • domain.com/page1 - form on page
  • domain.com/page2 - form on page
  • domain.com/page3 - form on page
  • domain.com/page4 - form on page

All forms currently post to domain.com/thank-you where data is sent via email using phpmailer

PHP validation must happen on pages with forms. Data must then be sent to domain.com/thank-you so that it can be sent via email.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥35 平滑拟合曲线该如何生成
    • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
    • ¥15 名为“Product”的列已属于此 DataTable
    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 自己瞎改改,结果现在又运行不了了
    • ¥15 链式存储应该如何解决
    • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站