Posts by Duda Gervásio • 316 points
13 posts
-
1
votes2
answers75
viewsA: Script using the <title> attribute displays the supplier and product key in <select> instead of their names
@Vorbbel, this one works! Although I don’t understand where you use it, it should be in the function that runs when submitting the form onsubmit="displayName()" who did not post in the question!…
-
0
votes3
answers201
viewsA: NOTICE Notice: Undefined index
This mistake you say is actually just a WARNING (Notice). It happens when there is no INDEX defined in the Array, in the case $_POST. HTML: When a CHECKBOX is not checked, it is not submitted with…
-
2
votes2
answers58
viewsA: Problem creating object in phpmailer: $email = new Phpmailer();
Hello, As far as I can tell, you’re not in any trouble, just doubting how to! Look at the examples in the documentation: Phpmailer/examples SMTP example: <?php //Passing `true` enables PHPMailer…
-
2
votes2
answers190
viewsA: Align icons and text on button
Hello, The texts were aligned were just not fitting inside the button, because their containers (Nav-item and Nav-button) were of size FIXED! I traded width for min-width, and the border-Radius of…
-
-1
votes1
answer55
viewsA: Take json array in ajax
Hello, 2 problems! 1) You are not returning pure JSON! echo"<pre>"; print_r($cliente); 2) Javascript needs to transform JSON into an object! success: function(retorno){ var res =…
-
-1
votes1
answer226
viewsA: sum in two tables in a single query
Hello, See if it solves, but there are some validation problems yet! If there is no code backup in the 2 tables! SELECT t.codigomateria, ( (SELECT SUM(tte.quantidade) FROM tbmateriaestoque tte WHERE…
-
0
votes2
answers1048
viewsA: Foreach PHP JSON json_decode How to print sub array
Hello, I prefer to work with Arrays! Putting true in the second parameter of json_decode( $json, true). json_decode - PHP Manual $eventos = $obj_json_trans[ 'eventos' ]; // LOOP EVENTOS foreach (…
-
0
votes3
answers210
viewsA: Receive form data in a TXT file
Hello, we have 2 problems! 1) Names of variables 2) Parameter of fopen PHP - fopen 3) Used $POST instead of the global variable $_POST Try STANDARDIZE the variable names (Form and PHP) HTML…
-
0
votes2
answers85
viewsA: Is it possible to change the value of a Readonly with conditions?
Hello, readolny is only for the user’s browser to block editing! Via code goes normal! In the code that is here, you first use the variable number to get the field and then add Eventlistener to the…
-
0
votes1
answer50
viewsA: Javascript - how to identify a file after an upload to the server
Hello, You cannot upload with pure Javascript, without the server receiving the files and processing them! You need to handle in the BACK-END! No defined URL xhr.open("POST", "", true); You need a…
-
-2
votes1
answer92
viewsA: How to scan a vector in PHP
Hello, See now if it works! I have already corrected for the answer check to be CASE-INSENSITIVE (either uppercase or lowercase)! <?php /* MEUS DADOS PARA TESTE $perguntas = array( array( 'id'…
phpanswered Duda Gervásio 316 -
1
votes2
answers169
viewsA: PHP Undefined Variable - I can’t assign a value to POST
Hello, Our friend Augusto Vasques is correct in your comment! You are checking whether the variable $_POST['send'] is set, but it is not being sent via POST as it does not contain a defined value…
-
2
votes2
answers381
viewsA: Css does not stay in HTML
I’m guessing I can’t send her the 2 files (HTML and CSS), correct?! We have 3 options! 1) Tag content of CSS file within the This way only the HTML file will be enough. <head> <style>…