fork download
  1. <?php
  2.  
  3. if (isset($_REQUEST['tab'])):
  4. $tab = $_REQUEST['tab'];
  5. if ($tab == 4)
  6. {
  7. echo '4th Tab Content';
  8. }
  9. elseif ($tab == 3)
  10. {
  11. echo '3rd Tab Content';
  12. }
  13. elseif ($tab == 2)
  14. {
  15. echo '2nd Tab Content';
  16. }
  17. else
  18. {
  19. echo '1st Tab Content';
  20. }
  21. else:
  22. ?>
  23.  
  24. HTML and Javascript codes here
  25.  
  26. <?php
  27. endif; ?>
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
HTML and Javascript codes here