Jump to content

case sensitve if statment


otuatail

Recommended Posts

Hi I want to check strings including case sensitive but I cant get it to work

 

$Name = strtolower (trim(stripslashes($_POST['Name'])));
$Pwd1 = strtolower (trim(stripslashes($_POST['PWD1'])));

if($Name == "Abc" && $Pwd1 == "Xyz")
{
// 
}

 

thi if statment works for

Abc

abc

ABC

 

Need it to be case sensitive

 

Any ideas please

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/266004-case-sensitve-if-statment/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.