html - Echo Submit Button in PHP -


i trying echo submit form in php code:

i trying following:

// display results foreach ($media->data $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 photo: {$data->likes->count}</h5>"; echo "<form>"; echo "<form action='tag.php' method='post'>"; echo "<input type='submit' name='submit'>"; echo "</form>";  } 

then:

if(isset($_post['submit'])) { echo "hello"; } 

this doesn't seem echo "hello";

any appreciated

you're missing closing parenthesis:

if(isset($_post['submit'])) {                           ^                           here 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -