Tag Archives: input

fontFamily 'Arial' is not a system font using react-native-textinput-effects

Questions: I have a error when I using react-native-textinput-effects . This is my error message: fontFamily ‘Arial’ is not a system font and has not been loaded through Expo.Font.loadAsync. – node_modules\react-native\Libraries\Renderer\ReactNativeRenderer-dev.js:3382:38 in diffProperties – If you intended to use a system font, make sure you typed the name correctly and that it is supported by… Read More »

Jackson deserialization different mappings based on input

Questions: I have an API I’m consuming that is returning two different values for a particular property. “Appt”: { “Start”: “2018-07-16T09:00:00-04:00”, “End”: “2018-07-16T23:00:00-04:00”, “Extn”: { “NumID”: “” } } The Extn field is the problem. It normally returns the object as above, and is mapping properly, but sometimes it’ll return a boolean value for Ext… Read More »

Get sum from more input radio button values

Questions: Can you help me ? It’s part of my form. I want sum of values from more inputs (type=radio) after check it dynamically. I want count total price (variable – $res). I know that this is string, but when I was changed settype to int, it doesn’t work. Please, help me 🙂 <div class=”wrapper_input”>… Read More »

Error while reading inputstream : 'Software caused connection abort' in java server

Questions: package com.example.umathur.myapplication; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.util.Log; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.math.BigInteger; import java.net.ServerSocket; import java.net.Socket; import java.nio.ByteBuffer; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class ThreadPooledServer implements Runnable { private static final String TAG = “UMG”; private int serverPort; private ServerSocket serverSocket =… Read More »

PHP PDO MySQL Escaped user input still allows SQL Injection [TESTED] using Acunetix

Questions: Lets start off with a bit of my code. class Database { private $host = “localhost”; private $db_name = “db_name”; private $username = “user”; private $password = “passwd”; public $conn; public function dbConnection() { $this->conn = null; try { $this->conn = new PDO(“mysql:host=” . $this->host . “;dbname=” . $this->db_name, $this->username, $this->password); $this->conn->setAttribute(PDO::ATTR_EMULATE_PREPARES,PDO::ATTR_ERRMODE); } catch(PDOException… Read More »

How to put IF condition for input field in a contact form (PHP, CODEIGNITER)

Questions: PHP Controller: $this->form_validation->set_rules(‘phone’, $this->language->get_text(‘phone’, ‘global’), ‘max_length[0]’); I need to put an IF condition for the above line code to return this: if (The_Above_Line_Code is NOT empty) { $this->output->set_status_header(400); exit; } So, if the input field don’t contain characters it’s OK and the contact form to work properly, but if contain characters, then should return… Read More »

PHP Array only showing last value inputted

Questions: For some reason my array is only displaying the last input and not showing all the inputs. I think the main issue is how I have my array set up and placed. Below is my code and a link to a website where you can run it. <html> <body bgcolor=”grey”> <div class=”main”> <form method=”POST”>… Read More »

PHP Session for input value with Submit form

Questions: I have 2 Pages, where an user must enter his Email Address on the first Page and on the Second page his Password, but i want display also the entered Email address above the Password. I have tried it with PHP Session Email Page: <form action=”save.php” method=”post”> <input id=”email” name=”email” type=”email” value=”” placeholder=”E-Mail-Adresse”> <button… Read More »