hi i am actually having problem in this code i am trying to check the value in the if condition in the very last lines of the code but i am facing an error of "undefined index" can anybody tell me so that i can solve my problem.
Code:
<html>
<body>
<form method="GET" action="switchcases.php">
<input type='text' name='furqan' >
<?php
$NAME=$_GET['furqan'];
switch($NAME)
{
case "ALLAH" :
echo "ya ALLAH madad";
break;
case "furqan" :
echo "hi i am furqan ahmed";
break;
case "bhaijaan" :
echo "hello bhai jaan is speaking";
break;
default:
if(($_GET['furqan']!="")&&(($_GET['furqan']!="ALLAH")|| this($_GET['furqan']!="furqan")||($_GET['furqan']!="bhaijaan")))
// the above is the line where i am getting the problem
echo "neither of the case";
}
?>
</form>
</body>
</html>
Comment