2016-01-12 158 views
-2

(!) Parse error: syntax error, unexpected 'filter_input' (T_STRING), expecting '(' in C:\wamp\www\CoffeeWebsite\Coffee.php on line 6語法錯誤意外'filter_input'

我有這種錯誤。有人可以幫我弄這個嗎?

+0

請複製代碼到你的問題貼用截圖來代替。 –

+0

你想在這裏做什麼?常量「INPUT_POST」是什麼?爲什麼在函數中使用'isset()'? –

回答

0

儘管isset是一種語言結構,它與函數調用的語法相同。您必須在變量周圍添加圓括號作爲參數。

isset(filter_input(INPUT_POST, 'types')) 
    ^         ^
0

請嘗試以下鏈接在你的代碼

if(isset(filter_input(INPUT_POST,'types')))