- 2

Php

Say what else is in this php code. line one by one <?php $uname="Griffin"; $pass="COS"; if (isset($_POST['uname'])){ $u=$_POST['uname']; if (isset($_POST['pass'])){ $p=$_POST['pass']; if ($uname==$u & $pass==$p){ echo ('successfuly loged in '.$u); }else{ echo 'incorrect details.'; } }} 👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆 line one by one

25th Jun 2020, 2:41 PM
noty lakiya
noty lakiya - avatar
1 RĂ©ponse
0
You need to have two '&' inside the if statement: If($uname ==$u && $pass==$p)...
27th Jun 2020, 7:05 AM
Dominique Abou Samah
Dominique Abou Samah - avatar