Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 php 文件位置是
http://localhost/mysite-Copy/index.php
这是转到其他页面的链接
http://localhost/mysite-Copy/category/Article/money1.php
在这个链接中,我使用代码时无法获取字符串值$_Get['id']
$_Get['id']
我无法在此链接中获取字符串值
我怎么解决这个问题?
由于您的问题真的不清楚,我猜您忘记通过调用将您的“id”值传递给您的money1.php
http://localhost/mysite-Copy/category/Article/money1.php?id=your_id_here
然后在你的 money1.php 中用$value = $_GET["id"].
$value = $_GET["id"]
我同意 Big00d。此外,问题可能出在您的 html 表单中。您确实意识到我们无法浏览到那些本地链接,对吧?