如何验证用户是否点击了联系表格 7 提交后发送的验证链接? [英] How to verify that user has clicked on the verification link sent after contact form 7 submit?

查看:26
本文介绍了如何验证用户是否点击了联系表格 7 提交后发送的验证链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  1. 当用户完成表单时,我会在邮件中发送 otp 验证链接.为此,我使用通过电子邮件发送 OTP 用于联系表单 7 插件".我想验证用户是否点击了该链接.并希望针对点击该链接的 emailID 用户保存数据/或更新 true.我该怎么做?

  1. I am sending otp verification link in mail when user completes the form. For this I am using "OTP by Email for Contact Form 7 plugin". I want to verify that users are clicking on that link or not. And want to save data/or update true against the emailID user who clicked on that link. How do I do this?

点击验证链接后,我想将用户重定向到一个页面,该页面将由他完成表单详细信息.这些细节保存在一个 js 变量中.我怎样才能在页面上显示他的详细信息?我如何实现这一目标?

After clicking on verification link,I want to redirect user to one page, that will have form details completed by him. Those details are saved in one js variable. How can I display his details on the page? How do I achieve this?

请指导我步骤和解决方案.TIA.

Please guide me with steps and solution. TIA.

推荐答案

  1. 您必须使用 CFDB7 插件来保存 CF7 数据 这是一个保存和检索数据的例子
  2. 您需要在 CF7 表单中创建隐藏字段并将 uniqID 插入其中(您可以使用插件添加唯一字段 cf7-submission-id
  3. 在站点上创建一个页面(为该页面创建一个模板),您会将客户端重定向到该页面并检查将是唯一 ID 的 get 参数

<?php
    if(isset($_GET['client_id']) { //client_id = uniqid of form
        // Your page code
        // client_id -> this is uniqid of form, check if it exists in the database and display the data of sended form 
    }
?>

  1. 在电子邮件文本中创建指向您创建的页面的链接,并添加带有 uniqid your.site/your_dynamic_page?client_id[submission_id submit_id-537]
  2. 的链接

这篇关于如何验证用户是否点击了联系表格 7 提交后发送的验证链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆