Advertisement
tolikpunkoff

multibutton.go.php

May 1st, 2017
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.         $buttonmessage="<center><b>Perssed button:</br>#";
  3.                
  4.         //Проверка кнопок
  5.         if (isset($_POST['button1']))
  6.         {
  7.             $buttonmessage.="1";
  8.         }
  9.        
  10.         if (isset($_POST['button2']))
  11.         {
  12.             $buttonmessage.="2";
  13.         }
  14.        
  15.         if (isset($_POST['button3']))
  16.         {
  17.             $buttonmessage.="3";
  18.         }
  19.                
  20.         echo $buttonmessage."</br>";
  21.         echo "Test text value: '".$_POST['testtext']."'</b></br></br>";
  22.         echo "<b>----- Output &#36;_POST array: ----</b></br><code><pre>";
  23.         print_r ($_POST); echo "</br></pre></code>";
  24.         echo "<b>-------------------------------</b></center>";
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement