PHP URL問題
各位大大 小弟是新手,不好意思 這邊有個很基礎的問題想請教一下>
如何讓PHP表單頁面(post.php)輸入一串URL, 送出URL後到另一個頁面(index.php),並在index.php中顯示在post.php中輸入的URL並將此URL變成超連結,請問要怎麼做呢? 謝謝!
//post.php的code:
=============================我是分隔線================================
//index.php的code
$ID=$_POST['UrName'];
$Url=$_POST['myurl'];
echo "您的大名: $ID
";
echo "網址:$url
";
//以上網址列出並可顯示出URL的超連結,方便使用者點選
?>
------解决方案--------------------HTML超链接的话 echo "网址:
{$url}";
输出结果就像这样 网址:http://xxx.com
------解决方案--------------------#1正解
echo "网址:
{$url}";
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn