PDA

View Full Version : Differentiate Caps Lock on forms.


sjmotos
03-10-2017, 01:53 AM
Hi, I hope you are all well,

how to diferentiate Caps Lock on PHP ?

Ejample:

User: Sjmotos
Pass: Sjmotos

Log in test:

User: sjmotos //(Is "Sjmotos", no "sjmotos"
Pass:Sjmotos

"Log IN OK"

Excuse my english.

My codes and:

http://s2.subirimagenes.com/otros/previo/thump_97039201.jpg (http://www.subirimagenes.com/otros-1-9703920.html)

<?php
if (isset($_POST['DBuser']) && !empty($_POST['DBuser']) &&
isset($_POST['DBpass']) && !empty($_POST['DBpass'])){

$DBuser = $_POST['DBuser'];
$DBpass = $_POST['DBpass'];


$db = "pruebaformulario";
$host = "localhost";
$pw = "";
$user = "root";




$con = mysql_connect($host,$user,$pw) or die("No se pudo conectar con la base de datos." );
mysql_select_db($db,$con) or die("No se pudo conectar a la base de datos.");
mysql_query("INSERT INTO registrousuarios (DBuser,DBpass) values ('$DBuser','$DBpass')");

echo header("Location: positivodatosACT.php");

}
else
{
echo header("Location: error datosACT.php");
}

?>


I say goodbye and thank you very much for your help.

edbr
03-10-2017, 09:16 AM
use mysqli or pdo, mysql is depreceated

makza01
04-04-2017, 02:57 AM
Asking for advice Differentiate Caps Lock on forms.:-P:-P:-P











gclub mobile (https://sbobetgoals.com/gclub-mobile.html)

Bill Goldberg
04-07-2017, 05:50 AM
Can I test this code?