我對PHP不太熟悉,所以我不知道該怎麼做。如何在此PHP代碼中包含鏈接?
$error["sess_msg"] = "This email has already been used. Select another one or use Forgot Password tool." ;
我怎樣才能讓鏈接「忘記密碼」這個PHP代碼中,以便用戶可以點擊它,並重定向到正確的頁面重置密碼,因爲標準的HTML不在這裏工作了。
感謝
我對PHP不太熟悉,所以我不知道該怎麼做。如何在此PHP代碼中包含鏈接?
$error["sess_msg"] = "This email has already been used. Select another one or use Forgot Password tool." ;
我怎樣才能讓鏈接「忘記密碼」這個PHP代碼中,以便用戶可以點擊它,並重定向到正確的頁面重置密碼,因爲標準的HTML不在這裏工作了。
感謝
$error["sess_msg"] = 'This email has already been used. Select another one or use <a href="#">Forgot Password tool.</a>' ;
$error["sess_msg"] = 'This email has already been used. Select another one or use Forgot <a href="forgotpass.php">Password tool.</a>';
要清理你:
$pw_reset_tool = '<a href="forgotpass.php">Forgot Password tool.</a>';
$error["sess_msg"] = 'This email has already been used.';
$error["sess_msg"] .= 'Select another one or use ';
$error["sess_msg"] .= $pw_reset_tool;
這樣你可以放在一個配置變量某處的鏈接部分。
所有這些重複。 PHP ..瑣碎的問題.. – Torxed 2013-05-06 11:55:56
改成這樣:
$error["sess_msg"] = "This email has already been used. Select another one or use <a href='YOUR_URL' />Forgot Password tool</a>." ;
使用下面的代碼:
$error["sess_msg"] = "This email has already been used. Select another one or use <a href='http://your_path_to_forgot_password_page'>Forgot Password</a> tool." ;
你想包括一個鏈接到使用python你的PHP代碼? :) – root 2013-05-06 11:53:48
標準的HTML工作在一個字符串,你必須記住..它只是一個字符串..你可以把任何你想要的東西。 其次,不要把你的問題標記爲Python,除非它是python,我大多忽略了PHP相關的問題,因爲大部分時間它是如此微不足道,而Python更有趣。 – Torxed 2013-05-06 11:55:12