Загрузка...

Can you tell me if youre good at html and php?

Thread in Backend created by Sjcjs Aug 1, 2024. (bumped Aug 1, 2024) 388 views

  1. Sjcjs
    Sjcjs Topic starter Aug 1, 2024 1 Dec 12, 2023
    Есть кнопка нажимая на которую должно перекинуть по ссылке,но при нажатии ничего не происходит,подскажите как пофиксить?

    </div>
    <?php if ($info['affiliate_link'] != ''): ?>
    <div class="modal-footer d-flex align-items-center justify-content-center border-0 mt-0 pt-0 mb-3">
    <form method="post">
    <input type="hidden" name="count" value="<?= $info['id'] ?>">
    <button class="btn btn-success" name="affiliate" type="submit" onClick="window.open('<?= $info['affiliate_link'] ?>');">
    <span>Перейти на сайт компании</span>
    </button>
    </form>
    </div>
    • <?php endif; ?>
     
  2. ch0smotrish
    ch0smotrish Aug 1, 2024 что 24 Jan 23, 2021
    PHP
    <?php if (!empty($info['affiliate_link'])): ?>
    <div class="modal-footer d-flex align-items-center justify-content-center border-0 mt-0 pt-0 mb-3">
    <form method="post">
    <input type="hidden" name="count" value="<?= htmlspecialchars($info['id']) ?>">
    <button class="btn btn-success" name="affiliate" type="submit" onclick="window.open('<?= htmlspecialchars($info['affiliate_link']) ?>');">
    <span>Перейти на сайт компании</span>
    </button>
    </form>
    </div>
    <?php endif; ?>
     
  3. aptyp4uk1337
    aptyp4uk1337 Aug 3, 2024 Banned 0 Oct 11, 2023
    PHP
    </div>
    <?php if ($info['affiliate_link'] != ''): ?>
    <div class="modal-footer d-flex align-items-center justify-content-center border-0 mt-0 pt-0 mb-3">
    <form method="post" action="<?= $info['affiliate_link'] ?>" target="_blank">
    <input type="hidden" name="count" value="<?= $info['id'] ?>">
    <button class="btn btn-success" name="affiliate" type="submit">
    <span>Перейти на сайт компании</span>
    </button>
    </form>
    </div>
    <?php endif; ?>
     
    1. Sjcjs Topic starter
    2. aptyp4uk1337
      Sjcjs, обращайся
Loading...
Top