-1
如何設置此代碼的條件,我想在沒有人引用我的頁面時將默認推薦鏈接設置爲incaenterprises。如何設置默認推薦鏈接
<?php
$ref = $_GET[ref];
if ($ref)
else
{
echo "incaenterprises";
}
?>
如何設置此代碼的條件,我想在沒有人引用我的頁面時將默認推薦鏈接設置爲incaenterprises。如何設置默認推薦鏈接
<?php
$ref = $_GET[ref];
if ($ref)
else
{
echo "incaenterprises";
}
?>
$ref = (isset($_GET['ref']) && !empty($_GET['ref']))
? $_GET['ref']
: "incaenterprises"
;
它的工作原理,謝謝! –
很高興我可以幫助:)請將答案標記爲已接受。 – Pierre