我想在php块中使用超棒的字体图标

时间:2019-03-24 02:14:12

标签: php

我想在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>

1 个答案:

答案 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>'