Advertisement
Guest User

Untitled

a guest
Dec 27th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. <form class="form-horizontal">
  2. <fieldset>
  3.  
  4. <!-- Form Name -->
  5. <legend>Andesite Request Form</legend>
  6.  
  7. <!-- Text input-->
  8. <div class="control-group">
  9. <label class="control-label" for="Full Name">Full Name</label>
  10. <div class="controls">
  11. <input id="Full Name" name="name" type="text" placeholder="First &amp; Lastname" class="input-xlarge" required="">
  12.  
  13. </div>
  14. </div>
  15.  
  16. <!-- Text input-->
  17. <div class="control-group">
  18. <label class="control-label" for="contact">Skype or E-mail Address</label>
  19. <div class="controls">
  20. <input id="contact" name="contact" type="text" placeholder="Best way to contact you" class="input-xlarge" required="">
  21.  
  22. </div>
  23. </div>
  24.  
  25. <!-- Button Drop Down -->
  26. <div class="control-group">
  27. <label class="control-label" for="lookingfor">What are you looking for?</label>
  28. <div class="controls">
  29. <select id="lookingfor" name="lookingfor" class="input-xlarge">
  30. <option>Server Build</option>
  31. <option>Custom Plugin</option>
  32. <option>Plugin Setup</option>
  33. <option>Server Setup</option>
  34. <option>Network Setup</option>
  35. <option>Enjin Website</option>
  36. <option>Graphics</option>
  37. </select>
  38. </div>
  39. </div>
  40.  
  41. <!-- Multiple Radios -->
  42. <div class="control-group">
  43. <label class="control-label" for="budget">Spending Budget</label>
  44. <div class="controls">
  45. <label class="radio" for="budget-0">
  46. <input type="radio" name="budget" id="budget-0" value="$5>" checked="checked">
  47. $5&gt;
  48. </label>
  49. <label class="radio" for="budget-1">
  50. <input type="radio" name="budget" id="budget-1" value="$10>">
  51. $10&gt;
  52. </label>
  53. <label class="radio" for="budget-2">
  54. <input type="radio" name="budget" id="budget-2" value="$20>">
  55. $20&gt;
  56. </label>
  57. <label class="radio" for="budget-3">
  58. <input type="radio" name="budget" id="budget-3" value="$30>">
  59. $30&gt;
  60. </label>
  61. <label class="radio" for="budget-4">
  62. <input type="radio" name="budget" id="budget-4" value="$50>">
  63. $50&gt;
  64. </label>
  65. </div>
  66. </div>
  67.  
  68. <!-- Text input-->
  69. <div class="control-group">
  70. <label class="control-label" for="time">When will you need this done?</label>
  71. <div class="controls">
  72. <input id="time" name="time" type="text" placeholder="" class="input-xlarge" required="">
  73.  
  74. </div>
  75. </div>
  76.  
  77. <!-- Button -->
  78. <div class="control-group">
  79. <label class="control-label" for="submit"></label>
  80. <div class="controls">
  81. <button id="submit" name="submit" class="btn btn-success">Send Request</button>
  82. </div>
  83. </div>
  84.  
  85. </fieldset>
  86. </form>
  87.  
  88. <?php
  89. if(!empty($_POST['name'])){
  90. $data = [
  91. 'name' => $_POST['name'],
  92. 'contact' => $_POST['contact'],
  93. 'lookingfor' => $_POST['lookingfor'],
  94. 'budget' => $_POST['budget'],
  95. 'time' => $_POST['time']
  96. ];
  97. $file = 'people.txt';
  98. file_put_contents($file, json_encode($data), FILE_APPEND | LOCK_EX);
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement