Posts by Guilherme Corrêa Peralta • 86 points
10 posts
-
1
votes1
answer453
viewsA: Take the value of a radio button
You have some open quotes. Also, use all radios with the same name. <mat-radio-group class="posicao" name="G"> <mat-radio-button class="margem" name="G"…
-
0
votes3
answers176
viewsA: Print result of an array in php list format
Try to exchange your foreach for this code: echo "<select>"; foreach ($diferenca as $value) { echo '<option value="'.$value.'">'.$value.'</option>'; } echo "</select>";…
-
1
votes2
answers1146
viewsA: Save html form input in csv
First you need to fix your HTML. Here are some changes I made to the form action, method, email field type, and how to handle checkboxes: <form action="save.php" method="post"> <input…
-
1
votes2
answers85
viewsA: Error saving converted date in phpMyAdmin database
I believe your problem is just how you inserted the variables into the string that will be sent to the database. Try this way: $query = "INSERT INTO ".$table." (versao, revisao, data) VALUES…
-
0
votes1
answer458
viewsA: iPhone does not read accents correctly in QR CODE that works normally on Android
I solved the question. Although it seems to be an encoding problem, it was not because it was already in UTF-8. The problem is actually simpler, this code was taken from the examples page of PHP QR…
-
0
votes1
answer458
viewsQ: iPhone does not read accents correctly in QR CODE that works normally on Android
I am generating a QR code from a VCARD using PHP QR Code (http://phpqrcode.sourceforge.net) and works perfectly (taking out a problem while saving in SVG I will search better first). Anyway, at the…
-
1
votes1
answer70
viewsA: Print dates 15 days forward from a start date
With strtotime you can add whatever you want, see example below: $data = "20-10-2014"; echo date('d/m/Y', strtotime("+2 days",strtotime($data))); This example was taken from another post on the…
-
-1
votes2
answers258
viewsA: How do I display HTML and CSS elements in PHP at a specific access level
Enter this code in the location wherever the button appears <?php if($_SESSION['nivel'] == "admin") { ?> <div><a href="index.html"><img id="back-arrow"…
-
0
votes3
answers1353
viewsA: File link for viewing / downloading / printing
There is no way to send a file for printing, but what you can do is display the contents of that file on a screen and run the javascript command for printing, as mentioned above. After this command…
htmlanswered Guilherme Corrêa Peralta 86 -
0
votes2
answers322
viewsA: Email validation php error
You can validate the email before you even send the form to PHP using HTML. Example: <input type="email" placeholder="Insira seu email">