Hi, Today, i found errror for my lab coding php with xampp. I have write a code form login in php.
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
localhost
Apache/2.4.33 (Win32) OpenSSL/1.1.0h PHP/7.2.6
I am not aware about syntax php that i have wrote.
$_SESSION['id'] = $row['id'];
header("Location : index.php?loginsuccess");
exit();
I am browse to google, and found this link . Basically i have doing little bit mistake write ‘header(“Location : index.php?loginsuccess”); 😀
i Should write this :
header("Location: index.php?loginsuccess");
The error came from the space between Location
and the colon ( :
).
brotherrr….you saved my day for real…..thank you so much…. I was frustrated where I was going wrong and it was just a tiny damn space!!
Thanks once again
Thank you bro,