logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-10-2017, 02:53 AM   #1
sjmotos
 
Join Date: Nov 2016
Posts: 7
Default Differentiate Caps Lock on forms.

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:



Code:
<?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.
sjmotos is offline   Reply With Quote
Old 03-10-2017, 10:16 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

use mysqli or pdo, mysql is depreceated
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 04-04-2017, 03:57 AM   #3
makza01
Banned
 
Join Date: Mar 2017
Posts: 3
Default Differentiate Caps Lock on forms.

Asking for advice Differentiate Caps Lock on forms.











gclub mobile
makza01 is offline   Reply With Quote
Old 04-07-2017, 06:50 AM   #4
Bill Goldberg
 
Join Date: Jan 2017
Posts: 39
Default

Can I test this code?
Bill Goldberg is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com