forms-sample-selfsubmit.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>jQuery Mobile Docs - Sample Form Submit to Self</title>
  7. <link rel="stylesheet" href="../../jquery.mobile-1.0.1.min.css" />
  8. <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
  9. <script src="../../jquery.js"></script>
  10. <script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
  11. <script src="../_assets/js/jqm-docs.js"></script>
  12. <script src="../../jquery.mobile-1.0.1.min.js"></script>
  13. </head>
  14. <body>
  15. <div data-role="page" class="type-interior">
  16. <div data-role="header" data-theme="f">
  17. <h1>Sample form submit to self</h1>
  18. <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
  19. </div><!-- /header -->
  20. <div data-role="content" data-theme="c">
  21. <div class="content-primary">
  22. <form action="forms-sample-selfsubmit.php" method="post">
  23. <fieldset data-role="controlgroup" data-type="horizontal" data-role="fieldcontain">
  24. <legend>Testing</legend>
  25. <div>
  26. <?php $g = $_REQUEST['gender']; ?>
  27. <input type="radio" name="gender" value="m" id="gender-1" <?=$g=="m"? "checked": ""; ?> /><label for="gender-1">Male</label>
  28. <input type="radio" name="gender" value="f" id="gender-2" <?=$g=="f"? "checked": ""; ?> /><label for="gender-2">Female</label>
  29. </div>
  30. </fieldset>
  31. <button type="submit">Submit</submit>
  32. </form>
  33. </div><!--/content-primary -->
  34. <div class="content-secondary">
  35. <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
  36. <h3>More in this section</h3>
  37. <ul data-role="listview" data-theme="c" data-dividertheme="d">
  38. <li data-role="list-divider">Form elements</li>
  39. <li><a href="docs-forms.html">Form basics</a></li>
  40. <li><a href="forms-all.html">Form element gallery</a></li>
  41. <li><a href="textinputs/">Text inputs</a></li>
  42. <li><a href="search/">Search inputs</a></li>
  43. <li><a href="slider/">Slider</a></li>
  44. <li><a href="switch/">Flip toggle switch</a></li>
  45. <li><a href="radiobuttons/">Radio buttons</a></li>
  46. <li><a href="checkboxes/">Checkboxes</a></li>
  47. <li><a href="forms-selects.html">Select menus</a></li>
  48. <li><a href="forms-themes.html">Theming forms</a></li>
  49. <li><a href="forms-all-native.html">Native form elements</a></li>
  50. <li data-theme="a"><a href="forms-sample.html">Submitting forms</a></li>
  51. </ul>
  52. </div>
  53. </div>
  54. </div><!-- /content -->
  55. <div data-role="footer" class="footer-docs" data-theme="c">
  56. <p>&copy; 2011-2012 The jQuery Project</p>
  57. </div>
  58. </div><!-- /page -->
  59. </body>
  60. </html>