Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. <?php
  2.  
  3. $isSubmitted = isset($_GET['num1']) && isset($_GET['num2']);
  4. $isAjax = isset($_GET['ajax']) ? (bool)$_GET['ajax'] : false;
  5.  
  6. if ($isSubmitted) {
  7.    
  8.    // paskaiciuoti
  9.  
  10.    if ($isAjax) {
  11.       die($responseArray);
  12.    }
  13. }
  14.  
  15. ?>
  16.  
  17. // HTML
  18. // input
  19. // if $isSubmitted { atsakymas/rezultas }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement