Advertisement
dimkiriaoks

select isset

Oct 31st, 2022
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. ?>
  2. <form method="post" id="statusForm">;
  3. <select name="voucher_check">;
  4. <option value="" <?= !isset($getStatus) ? 'selected' : '' ?>>--- Κατάσταση Voucher ---</option>;
  5. <option value="1" id="checking_voucher" <?= (isset($getStatus) && $getStatus == 1) ? 'selected' :'' ?>>Εκκρεμεί έλεγχος</option>;
  6. <option value="2" id="in_progress_voucher" <?= (isset($getStatus) && $getStatus == 2) ? 'selected' :'' ?>>Δεσμευμένο</option>;
  7. <option value="3" id="cancelled_voucher" <?= (isset($getStatus) && $getStatus == 3) ? 'selected' :'' ?>>Ακυρωμένο</option>;
  8. </select>;
  9. <input type="submit" name="save_status">;
  10. </form>;
  11. <?php
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement