我想在php块中使用超棒的字体图标
echo '<form action="like.php?post_id=' . $post_id . '" method="POST">
<input type="submit" class="comment_like1" name="like_button" value="Like">
<div class="like_value">
'. $total_likes .' Likes
</div>
</form>
echo '<form action="like.php?post_id=' . $post_id . '" method="POST">
<input type="submit" class="comment_like1" name="like_button" value="Like">
<div class="like_value">
'. $total_likes .' Likes
</div>
</form>
答案 0 :(得分:0)
尝试:
echo '<form action="like.php?post_id=' . $post_id . '" method="POST">
<input type="submit" class="comment_like1" name="like_button" value="Like">
<div class="like_value">
'. $total_likes .' <i class="fa fa-thumbs-up"></i>
</div>
</form>'