vendredi 6 novembre 2015

Hide button if it is not embedded in the post (No data displayed)

From my code below, i am unsure on how to create in else statement that states if data comes with a Recipe embedded in the post, button will be displayed which allow user to click. However, if data does not come with a Recipe, button will be hidden. I unsure on how to create from here.

<div class="articlepreview">
    <button type="submit" value="Recipe" class="buttonlink" onclick="parent.location='<?php echo 'Recipe-view?id=' . $eachData["RecipeID"]; ?>'">Recipe</button>
</div>

Aucun commentaire:

Enregistrer un commentaire