Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Calling a php function in itself using jQuery
  2. <?php
  3.  
  4. $action = $_GET['action'];
  5.  
  6. switch ($action) {
  7.     case 0:
  8.         someFunction();
  9.         break;
  10.     case 1:
  11.         anotherFunction();
  12.         break;
  13.     default:
  14.         // do nothing
  15.         break;
  16. }
  17.  
  18. function someFunction() {
  19.  
  20. }
  21.  
  22. function anotherFunction() {
  23.  
  24. }
  25. ?>