Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. if (isset($_POST['submit'])){
  2. echo 'jemoeder';
  3. // $name = ($_POST['name']);
  4. // $email = ($_POST['email']);
  5. // $tel = ($_POST['tel']);
  6. // $bericht = ($_POST['bericht']);
  7. }
  8.  
  9. ?>
  10.  
  11. </script>
  12.  
  13.  
  14. <!-- CREATE Modal, (cModal) -->
  15. <div class="modal fade" id="cModal" tabindex="-1" role="dialog" aria-labelledby="cModalLabel">
  16. <div class="modal-dialog" role="document">
  17. <div class="modal-content">
  18. <div class="modal-header">
  19. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  20. <h4 class="modal-title" id="myModalLabel">Nieuw Product</h4>
  21. </div>
  22. <div class="modal-body">
  23. <form class="toevoegen" toevoegen method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
  24. <label for="productName">Product Naam:</label>
  25. <input type="text" id="productName" name="name" class="form-control" placeholder="Naam.." value="<?php if(isset($_POST['name'])){ echo $_POST['name']; } ?>" required autofocus><br>
  26. <label for="productDesc">Product Beschrijving:</label>
  27. <textarea rows=3 id="productDesc" name="desc" class="form-control" placeholder="Beschrijving.." value="<?php if(isset($_POST['desc'])){ echo $_POST['desc']; } ?>" required autofocus></textarea><br>
  28. <label for="productName">Product Foto:</label>
  29. <p>blablabla</p>
  30. <!-- Image dingetje hier. -->
  31. <br>
  32. <label for="productPrice">Product Prijs:</label>
  33. <input type="text" id="productPrice" name="price" class="form-control" placeholder="Prijs (ex. 5,00).." value="<?php if(isset($_POST['prijs'])){ echo $_POST['price']; } ?>" required autofocus><br>
  34. </div>
  35. </form>
  36. <div class="modal-footer">
  37. <button type="button" class="btn btn-primary" data-dismiss="modal">Sluiten</button>
  38. <button type="button" class="btn btn-primary" id="bToevoegen" name="submit" type="submit">Toevoegen</button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement