Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['submit'])){
- echo 'jemoeder';
- // $name = ($_POST['name']);
- // $email = ($_POST['email']);
- // $tel = ($_POST['tel']);
- // $bericht = ($_POST['bericht']);
- }
- ?>
- </script>
- <!-- CREATE Modal, (cModal) -->
- <div class="modal fade" id="cModal" tabindex="-1" role="dialog" aria-labelledby="cModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel">Nieuw Product</h4>
- </div>
- <div class="modal-body">
- <form class="toevoegen" toevoegen method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <label for="productName">Product Naam:</label>
- <input type="text" id="productName" name="name" class="form-control" placeholder="Naam.." value="<?php if(isset($_POST['name'])){ echo $_POST['name']; } ?>" required autofocus><br>
- <label for="productDesc">Product Beschrijving:</label>
- <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>
- <label for="productName">Product Foto:</label>
- <p>blablabla</p>
- <!-- Image dingetje hier. -->
- <br>
- <label for="productPrice">Product Prijs:</label>
- <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>
- </div>
- </form>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" data-dismiss="modal">Sluiten</button>
- <button type="button" class="btn btn-primary" id="bToevoegen" name="submit" type="submit">Toevoegen</button>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement