Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p style="text-align:center; font-size:20px; font-weight:bold;">¿Cuánto te quieres gastar?:</p>
- <form action="xxxxxx.com#Las_6_mejores_maquinas_depiladoras_de_cejas" method="post">
- <output class="value" id="range_weight_disp">40 €</output></p>
- <input type="range" name="preciofor" id="range_weight" value="40" step="10" min="20" max="200" oninput="range_weight_disp.value = range_weight.value">
- <div class="inner-button"><input style="margin-top:15px" class="comparador-button" type="submit" name="totalpro" value="Filtro por precio" /></div>
- </form></p>
- <script>
- var elem = document.querySelector('input[type="range"]');
- var rangeValue = function(){
- var newValue = elem.value;
- var target = document.querySelector('.value');
- target.innerHTML = newValue + "€";
- }
- elem.addEventListener("input", rangeValue);
- </script>
- <?php
- $precio = $_POST["preciofor"];
- $total = $_POST["totalpro"];
- if ($total == "")
- {
- $total = 6;
- }
- ?>
- <?php if($total== "6"){ ?>
- [aawp box="B07WDGS1ZJ,B07WPGYLT1,B0894RWG32,B08B81K1Q8,B08DXMC2JD" filterby="price" filter="<?php echo $precio; ?>" description_items="3" rating="<?php echo rand(4, 5); ?>" orderby="rating" filter_compare="less" image_size="medium" template="table"]
- <?php }else{ ?>
- [aawp box="xxxxxxxx" orderby="rating" filterby="price" image_size="medium" filter="<?php echo $precio; ?>" rating="<?php echo rand(4, 5); ?>" filter_compare="less" template="table"]
- <?php }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement