Posts by Lucas Soares • 47 points
5 posts
-
1
votes2
answers50
viewsQ: Would you like to know how to receive the value of my select by clicking on an option with pure javascript?
I need to receive these values without there being a button, just by clicking on the field. The select has more than 50 option from a PHP loop. <select> <option…
-
1
votes1
answer169
viewsQ: How to remove items from an array?
function converterBinario () { numero = document.getElementById("Valor-decimal").value; var vetor = []; var i =numero; var cont=0; while(i>0){ var resto = Math.floor(numero % 2); if (resto == 0 |…
javascriptasked Lucas Soares 47 -
-4
votes2
answers161
viewsQ: I can’t convert to whole
Perform a function that reads a text file containing a list of IP addresses and generates two other files, one containing valid IP addresses and the other containing invalid addresses. The format of…
pythonasked Lucas Soares 47 -
1
votes1
answer65
viewsQ: How do I compare the property of an object with a string?
class Alunos{ public $nome; } $aluno= new Alunos(); $aluno->nome="Pedro"; if(propriedade=="nome") { echo $aluno->nome; }
phpasked Lucas Soares 47 -
1
votes1
answer77
viewsQ: Compare "Active" == $object->status in PHP
$matricula=$_POST['matricula']; foreach ($aluno as $objeto){ if ($objeto->matricula==$matricula ) { echo $objeto->status; if ($objeto->$mail == false and "Ativo" == $objeto->status ) {…
phpasked Lucas Soares 47