URL GET を使用して PHP ページに変数を渡そうとしていますが、空白が表示されます。何が問題なのですか?!
url: http://localhost:2651/index_main.php?teamName=Liverpool
宛先の PHP ファイルは次のとおりです。
<?php
$teamName = $_GET['teamName'];
?>
<html>
<body>
<?php
$searchQuery = $api->searchTeam(urlencode('<?php $_GET["teamName"]; ?>')) // here must get the team name from previous page
?>
<h3>All home matches of <?php echo $team->_payload->name; ?>:</h3>
</body>
</html>