Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Untitled</title>
  5. <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/phpgrid/lib/js/themes/south-street/jquery-ui.custom.css"></link>
  6. <link rel="stylesheet" type="text/css" media="screen" href="http://localhost/phpgrid/pages.css"></link>
  7. <script src="http://localhost/phpgrid/lib/js/jquery.min.js" type="text/javascript"></script>
  8. <script src="http://localhost/phpgrid/lib/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
  9. <script>
  10. $(document).ready(function(){
  11. $( "#total" ).tabs();
  12. $("#option").change(function(){
  13. $.post('untitled2.php', { value : $("#option").val() },
  14. function(data) {
  15. $('#total').html(data);
  16. });
  17. });
  18. });
  19. </script>
  20. </head>
  21. <body>
  22. <div id="tabs" class="welcometitle">
  23. <?php echo "Welcom User !";?><br>
  24. <a href="logout.php"><font size="2.5">Log out</font></a>
  25. <br>
  26. </div>
  27.  
  28. <div id="total">
  29. <label for="call">Total Calls By :&nbsp;</label>
  30. <select name="call" id="option">
  31. <?php
  32. if (!isset($_POST['value'])) {$_POST['value'] = '';};?>
  33. <option value="val1" <?php if($_POST['value'] == 'val1'){echo 'selected="selected"';}?>>1</option>
  34. <option value="val2" <?php if($_POST['value'] == 'val2'){echo 'selected="selected"';}?>>2</option>
  35. <option value="val3" <?php if($_POST['value'] == 'val3'){echo 'selected="selected"';}?>>3</option>
  36. <option value="val4" <?php if($_POST['value'] == 'val4'){echo 'selected="selected"';}?>>4</option>
  37. </select>
  38. <?php
  39. if (!isset($_POST['value'])) {$_POST['value'] = '';};
  40. echo $_POST['value'];?>
  41.  
  42. </div>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement