chartManD commited on
Commit
938d709
·
1 Parent(s): 42ae6e4

Lista de productos en catalogo.php

Browse files
Files changed (2) hide show
  1. app/pages/catalogo.php +7 -1
  2. app/pages/compras.php +9 -4
app/pages/catalogo.php CHANGED
@@ -5,9 +5,15 @@
5
  <h1 class="text-center mb-4">Catalogo de articulos</h1>
6
  <div class="mb-3">
7
  <label for="articulo" class="form-label">Articulo</label>
8
- <input type="text" name="articulo" class="form-control" id="articulo" aria-describedby="emailHelp">
 
 
 
 
 
9
  <div id="emailHelp" class="form-text">Tu aritulo favorito</div>
10
  </div>
 
11
  <div class="mb-3">
12
  <label for="cantidad" class="form-label">Cantidad</label>
13
  <input type="number" name="cantidad" class="form-control" id="cantidad">
 
5
  <h1 class="text-center mb-4">Catalogo de articulos</h1>
6
  <div class="mb-3">
7
  <label for="articulo" class="form-label">Articulo</label>
8
+ <select id="articulo" class="form-select" name="articulo" aria-label="Default select example">
9
+ <option selected value="zapato">Zapatos</option>
10
+ <option value="camisa">Camisa</option>
11
+ <option value="calcetin">Calcetines</option>
12
+ <option value="lentes">Lentes</option>
13
+ </select>
14
  <div id="emailHelp" class="form-text">Tu aritulo favorito</div>
15
  </div>
16
+
17
  <div class="mb-3">
18
  <label for="cantidad" class="form-label">Cantidad</label>
19
  <input type="number" name="cantidad" class="form-control" id="cantidad">
app/pages/compras.php CHANGED
@@ -2,12 +2,17 @@
2
 
3
  <?php
4
  var_dump($_GET);
5
- echo "<br>";
6
- foreach ($_GET as $key => $value) {
7
- echo $key . ": " . $value . "<br>";
8
- }
9
  ?>
10
 
 
 
 
 
 
 
 
 
 
11
  <div style="width: 400px; height: 400px; background-color: <?php echo $_GET["color"] ?>;"></div>
12
 
13
  <?php include_once "../inc/footer.php"; ?>
 
2
 
3
  <?php
4
  var_dump($_GET);
 
 
 
 
5
  ?>
6
 
7
+ <article class="container-fluid d-flex flex-column">
8
+ <header>
9
+ <h2><?php echo $_GET["articulo"] ?></h2>
10
+ </header>
11
+ <div class="">
12
+ <img src="" alt="">
13
+ </div>
14
+ </article>
15
+
16
  <div style="width: 400px; height: 400px; background-color: <?php echo $_GET["color"] ?>;"></div>
17
 
18
  <?php include_once "../inc/footer.php"; ?>