我正在WordPress上定製一個插件,我想在html輸出中顯示一個GET變量?我該怎麼做?輸出html中的變量
$mlpoutputhtml .= "Selected category: "; + the get variable
感謝
我正在WordPress上定製一個插件,我想在html輸出中顯示一個GET變量?我該怎麼做?輸出html中的變量
$mlpoutputhtml .= "Selected category: "; + the get variable
感謝
$_GET['thename'];
閱讀更多關於它在這裏:http://php.net/manual/en/reserved.variables.get.php
這
$mlpoutputhtml .= "Selected category: " . $_GET['your_variable'];
@RajdeepPaul - 您能否將您的評論轉換爲答案,Quentin能否刪除此答案,並等到Rajdeep提供了他的答案,以便您可以正確地將其標記爲已接受? – Lee
@Lee沒有問題,OP可以將此答案標記爲*接受答案*。 :-) –
回聲$ _GET ['your_variable] –
This,'$ mlpoutputhtml。=「選擇的類別:」。 $ _GET ['your_variable'];'? –