我正在尝试在我的 php 代码中回显提交表单:
我正在尝试以下操作:
// Display results
foreach ($media->data as $data) {
echo "<a href=\"{$data->link}\"</a>";
echo "<h4>Photo by: {$data->user->username}</h6>";
echo $pictureImage = "<img src=\"{$data->images->thumbnail->url}\">";
echo "<h5>Like Count for Photo: {$data->likes->count}</h5>";
echo "<form>";
echo "<form action='tag.php' method='post'>";
echo "<input type='submit' name='submit'>";
echo "</form>";
}
然后:
if(isset($_POST['submit'])) {
echo "hello";
}
这似乎没有回应“你好”;
任何帮助,将不胜感激