Posts by KillerJack • 342 points
7 posts
-
0
votes2
answers125
viewsA: POST crashes the script and does not execute the code after form Ubmit
I recommend that you pass this part of the code to javascript/jquery, using the $.ajax() in place of $.post(): $.ajax({ type: "POST", url: $("#credit_card_form").attr('action'), data:…
-
2
votes1
answer77
viewsA: how to stop the for loop in a given action?
Use a var_dump($Fotos); below the variable declaration and you will see why your loop is not working. $_FILES returns an associative array containing an indexed array for each association. Change…
-
2
votes3
answers268
viewsA: Use HTML in PHP
You need to escape the quotation marks or exchange them for simple quotation marks, since you are using quotation marks for echo. Escaping the quotation marks: echo "<a…
-
5
votes3
answers200
viewsA: Error picking element by class (but with ID)
The problem when trying to play per class in this case is that there may be more than one element with the same class and both jquery and getElementsByClassName will not return only one element, but…
-
2
votes1
answer58
viewsA: How do I stop an HTML function from working with Javascript?
function check_if_capcha_is_filled (e) { if(allowSubmit) return true; else{ alert('Fill in the capcha!'); return false; } } <form method="post" onsubmit="return check_if_capcha_is_filled()"…
-
2
votes1
answer783
viewsA: Real-time data filter using Jquery
$('.campo select').on('change', function(){ var valorSelecionado = $('.campo select').eq(0).val(); var valorSelecionado2 = $('.campo select').eq(1).val(); $.ajax({ method: "POST", url: "pagina.php",…
-
3
votes5
answers227
viewsA: What are strings started with @inside PHP comments?
This is nothing more than documentation of the code, only serves as information. For example: What is expected as parameter, what class or method returns and etc. See phpDocumentor documentation…
phpanswered KillerJack 342