Guest User

Untitled

a guest
Jan 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <form action="" method="post">
  2. <div class="input_field">
  3. <input type="submit" value="Get Data" class="btn waves-effect waves-light myBlue" name="get_data">
  4. </div>
  5. </form>
  6.  
  7. <?php
  8.  
  9. $user = checkConnected($bdd)
  10. checkAutorisation($user, true);
  11.  
  12.  
  13.  
  14. if (!isset($_POST['get_data'])) {
  15.  
  16. $pdf = new FPDF('P', 'mm', 'A4');
  17. $pdf->SetFont('Arial', 'B', 16);
  18. $pdf->Cell(40, 10, 'Hello World !', 1);
  19. $pdf->Output();
  20. }
  21.  
  22. require('views/Head.php');
  23. require $_dir["front"] . "file.php";
  24.  
  25. use FpdfFpdf;
Add Comment
Please, Sign In to add comment