Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="form-horizontal">
- <fieldset>
- <!-- Form Name -->
- <legend>Andesite Request Form</legend>
- <!-- Text input-->
- <div class="control-group">
- <label class="control-label" for="Full Name">Full Name</label>
- <div class="controls">
- <input id="Full Name" name="name" type="text" placeholder="First & Lastname" class="input-xlarge" required="">
- </div>
- </div>
- <!-- Text input-->
- <div class="control-group">
- <label class="control-label" for="contact">Skype or E-mail Address</label>
- <div class="controls">
- <input id="contact" name="contact" type="text" placeholder="Best way to contact you" class="input-xlarge" required="">
- </div>
- </div>
- <!-- Button Drop Down -->
- <div class="control-group">
- <label class="control-label" for="lookingfor">What are you looking for?</label>
- <div class="controls">
- <select id="lookingfor" name="lookingfor" class="input-xlarge">
- <option>Server Build</option>
- <option>Custom Plugin</option>
- <option>Plugin Setup</option>
- <option>Server Setup</option>
- <option>Network Setup</option>
- <option>Enjin Website</option>
- <option>Graphics</option>
- </select>
- </div>
- </div>
- <!-- Multiple Radios -->
- <div class="control-group">
- <label class="control-label" for="budget">Spending Budget</label>
- <div class="controls">
- <label class="radio" for="budget-0">
- <input type="radio" name="budget" id="budget-0" value="$5>" checked="checked">
- $5>
- </label>
- <label class="radio" for="budget-1">
- <input type="radio" name="budget" id="budget-1" value="$10>">
- $10>
- </label>
- <label class="radio" for="budget-2">
- <input type="radio" name="budget" id="budget-2" value="$20>">
- $20>
- </label>
- <label class="radio" for="budget-3">
- <input type="radio" name="budget" id="budget-3" value="$30>">
- $30>
- </label>
- <label class="radio" for="budget-4">
- <input type="radio" name="budget" id="budget-4" value="$50>">
- $50>
- </label>
- </div>
- </div>
- <!-- Text input-->
- <div class="control-group">
- <label class="control-label" for="time">When will you need this done?</label>
- <div class="controls">
- <input id="time" name="time" type="text" placeholder="" class="input-xlarge" required="">
- </div>
- </div>
- <!-- Button -->
- <div class="control-group">
- <label class="control-label" for="submit"></label>
- <div class="controls">
- <button id="submit" name="submit" class="btn btn-success">Send Request</button>
- </div>
- </div>
- </fieldset>
- </form>
- <?php
- if(!empty($_POST['name'])){
- $data = [
- 'name' => $_POST['name'],
- 'contact' => $_POST['contact'],
- 'lookingfor' => $_POST['lookingfor'],
- 'budget' => $_POST['budget'],
- 'time' => $_POST['time']
- ];
- $file = 'people.txt';
- file_put_contents($file, json_encode($data), FILE_APPEND | LOCK_EX);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement