Posts by Nicolas Guilherme • 331 points
7 posts
-
3
votes1
answer247
viewsQ: input and javascript tag
Hello, My question is this: HTML <input id="cakeDonuts" type="number" name="numCake" min="0" value="" onchange="updateOrder()"> <input id="glazedDonuts" type="number" name="numGlazed"…
-
15
votes3
answers83000
viewsQ: Format currency with mile separator
I have the following code: function numberParaReal(numero){ var formatado = "R$ " + numero.toFixed(2).replace(".",","); return formatado; } function realParaNumber(texto){ var…
javascriptasked Nicolas Guilherme 331 -
0
votes2
answers45
viewsA: Doubt passing parameters via form
I solved the problem, the solution is below: Just add an input type Hidden <input type="hidden" name="numproduto" value="2"> And complement the display code: <img…
-
-2
votes2
answers45
viewsQ: Doubt passing parameters via form
Doubt, I can’t send the image. Way: _img/_products/photo2-green.png <input type="radio" name="cor" id="verde" value="verde"> <img…
-
1
votes1
answer112
viewsQ: Data type not defined in PHP
Thinking of a banking system. If I have a $balance variable; I can play a string within that variable in PHP. I wonder how to solve this problem in php. and what is the advantage of php having…
phpasked Nicolas Guilherme 331 -
1
votes2
answers72
viewsA: Composite allocation operator
For those who have Doubts, the code was like this. $i = 1; $r = 1; while($i <=5) { $p = isset($_GET["n$i"])?$_GET["n$i"]:0; echo "$i ° Numero: $p <br>"; $r *= $p; $i++; } echo "<br>A…
-
2
votes2
answers72
viewsQ: Composite allocation operator
I can’t understand why he won’t perform the expression I want. Follows the code: $i = 1; $ranking = 1; $r = 0; for($i = 1; $i <=5; $i++){ $p = isset($_GET["n$i"])?$_GET["n$i"]:0; echo "$ranking °…