Posts by Tiago Simoes • 1 point
5 posts
-
0
votes2
answers21
viewsQ: How to eliminate registration in a modal without closing?
Good afternoon! I make a request via AJAX to open a modal. I list a data set and have the option to delete the record from the table. The problem is that whenever I delete a record the page gives…
-
-1
votes2
answers1203
viewsQ: How to prevent the number being less than or equal to 0 in an input type number?
Good night. I have an input type number (so when I list my shopping cart can change the quantity) <td> <input type="number" style="width: 50px;" id="<?php echo "p" . $a; ?>" min="1"…
-
0
votes1
answer58
viewsQ: How to get the value of a button using $_REQUEST?
Good night. I do a query, upload the data to a table and on each row I have a button that each record will have a different value. My question is how to get, in php, the value of the selected button…
phpasked Tiago Simoes 1 -
0
votes1
answer792
viewsQ: How to assign the value of a variable in javascript, within php?
<script> $(document).ready(function () { $("input").change(function () { var carrinho = $("#carrinho").val(); //alert("Carrinho " + carrinho); var i; var soma = 0; for (i = 1; i <=…
-
0
votes0
answers35
viewsQ: How to get the value of a variable declared in javascript and assign to a session value (using an array) in php?
This is my shopping cart: <?php $c = count($_SESSION["shopping_cart"]); echo '<script>console.log("termina com contador = ' . $c . '")</script>'; for ($i = 0; $i < $c; $i++) { echo…