0
我使用一個PHP形式未定義指數,將獲得來自URL的CID。例如records.php?CID = 23
但我得到的CID的錯誤未定義指數下面的行。
如果(is_numeric($ _ POST [ 'CID']))
if (isset($_GET['cid']))
{
// if the form's submit button is clicked, we need to process the form
if (isset($_POST['submit']))
{
// make sure the 'cid' in the URL is valid
if (is_numeric($_POST['cid']))
{
// get variables from the URL/form
$cid = $_POST['cid'];