SHARE
TWEET

multibutton.go.php

tolikpunkoff May 1st, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top