2

我有一个用户填写的表格,他们的信息被转移到下一个登陆页面的表格以生成潜在客户,因此他们不必重新填写另一个表格。

无论如何让数据库动态创建链接,所以如果用户离开登录页面并单击链接,他们将被引导到登录页面,所有表单填写的信息都填写了以前的样子?

这是调用数据的代码

global $wpdb;

if ($_SESSION['form'] == 'old') {

$FirstName = $_REQUEST['FirstName'];
$LastName = $_REQUEST['LastName'];
$Address1 = $_REQUEST['Address1'];
$Email = $_REQUEST['Email'];
} 
else {
$FirstName = $_REQUEST['first_name'];
$LastName = $_REQUEST['last_name'];
$Address1 = $_REQUEST['street'];
$Email = $_REQUEST['form_email'];
}



$_SESSION['FirstName'] = $FirstName;
$_SESSION['LastName'] = $LastName;
$_SESSION['Address1'] = $Address1;
$_SESSION['Email'] = $Email;

然后表单在所需字段中回显

4

0 回答 0