2017-06-09 45 views
0

我想在鏈接中添加一個變量電子郵件地址(因此,當有人點擊鏈接時,電子郵件地址會動態填充),這將重定向PHP。電子郵件地址因訪問該鏈接的人而異。所以我想知道,我怎樣才能在普通的URL地址中添加變量Email,然後將它插入並添加到PHP重定向?在鏈接URL中添加默認電子郵件變量

這是代碼,但沒有工作...

<?PHP 
$subid=$_GET[subid]; 
$email=$_GET[email]; 
?> 

<html> 

<head> 
    <meta http-equiv="refresh" content="0;url=http://xentrk.com/?a=41&c=308&s1={{ email|default:'null' }}<?PHP echo $subid;?>" /> 
</head> 

<body> 

回答

1

您正在使用您的網址echo $subid

當然這應該是$email

在這種情況下,這是代碼:

<?php 
$subid=$_GET['subid']; 
$email=$_GET['email']; 
?> 

<html> 

<head> 
    <meta http-equiv="refresh" content="0;url=http://xentrk.com/?a=41&c=308&s1={{ email|default:'null' }}<?php echo $email;?>" /> 
</head> 

<body> 
相關問題