예제 #1
0
파일: index.php 프로젝트: jokuf/solutions
<div class="form-group">
  <label class="col-md-4 control-label" for="submit"></label>
  <div class="col-md-4">
    <button id="submit" name="submit" class="btn btn-primary">Search</button>
  </div>
</div>

</fieldset>
</form>

  </div>
  </div>
   <div class="row">
  	<div class="col-md-6 col-md-offset-3">
  	<?php 
if (isset($_POST['submit'])) {
    $data = new Word($_POST['rows'], $_POST['columns']);
    $data->get_string($_POST['string']);
    $data->search_string($_POST['search_string']);
    $data->create_table();
}
?>
  	</div>
  </div>
 

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" integrity="sha512-K1qjQ+NcF2TYO/eI3M6v8EiNYZfA95pQumfvcVrTHtwQVDG+aHRqLi/ETn2uB+1JqwYqVG3LIvdm9lj6imS/pQ==" crossorigin="anonymous"></script>
  </body>
</html>