Advertisement
BrianSpravka

XYplorer: Choice Box

Sep 13th, 2019
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://www.xyplorer.com/xyfc/viewtopic.php?t=12306
  2.  
  3. $choice = input("Continue?", "Yes, you can...<crlf>Set 1 for YES-sim<crlf>Set 2 for NO-não<crlf>Set 3 for CANCEL-cancelar", 1, );
  4.  
  5.    if($choice == 1) {
  6.                     echo "Pressed YES.";
  7.                     }
  8.    if($choice == 2) {
  9.                     echo "Pressed NO.";
  10.                     }
  11.    if($choice == 3) {
  12.                     echo "Pressed CANCEL.";
  13.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement