Top "User-input" questions

User Input is data that the user inputs into the program.

Asking the user for input until they give a valid response

I am writing a program that accepts an input from the user. #note: Python 2.7 users should use `raw_input`, the …

python validation loops python-3.x user-input
How can I sanitize user input with PHP?

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while …

php security xss sql-injection user-input
Getting user input

I am running this: import csv import sys reader = csv.reader(open(sys.argv[0], "rb")) for row in reader: print …

python user-input
How do you check if a string is not equal to an object or other string value in java?

I have been trying to make a clock that the user can set. I wanted the user to be asked …

java string time if-statement user-input
How to save user input into a variable in html and js

i am making a game and at the start it asks for your name. I want this name to be …

javascript html user-input
Spring MVC: How to perform validation?

I would like to know what is the cleanest and best way to perform form validation of user inputs. I …

java spring-mvc validation user-input
JavaScript: Check if mouse button down?

Is there a way to detect if a mouse button is currently down in JavaScript? I know about the "mousedown" …

javascript input mouse user-input input-devices
Converting String Array to an Integer Array

so basically user enters a sequence from an scanner input. 12, 3, 4, etc. It can be of any length long and it …

java string integer user-input data-manipulation
Command line input in Python

Is it possible to run first the program then wait for the input of the user in command line. e.…

python command-line input python-2.7 user-input
How to show "Done" button on iPhone number pad

There is no "Done" button on the number pad. When a user finishes entering numeric information in a text field, …

ios iphone user-input