首页 > 解决方案 > 我不能从 URL `$_GET['id']`

问题描述

我尝试使用引导模式中的更新方法,但是当我单击编辑并且 url 以这种方式出现时http://localhost/../pages/typography#edit?id = 15。我不能 $_GET ['id'] 错误是,indeterminate index

标签: php

解决方案


尝试http://localhost/../pages/typography?id=15#edit

哈希部分(之后的所有内容#)通常不会发送到服务器进行处理。您希望服务器接收的任何内容都需要在#符号之前。


推荐阅读