jug Posted November 22, 2006 Share Posted November 22, 2006 Right, all i want is where i have starred the code, is for the page to be redirected or just simply go to another page (ie the home page as they have logged in) I have looked everywhere but to be honest nothing has helped. I have tried some java-s and 'fopen' amongst other things but nothing seems to work. I just hope that the solution is so easy that it hasnt been posted online much. The script is below.Thanks in advancejug<?php$Message = "";if(isset($_POST['Submit'])){ $AdminName = $_POST['AdminName']; $AdminPass = $_POST['AdminPass']; if($AdminName == "" || $AdminPass == "" ){ $Message = "You must fill in both boxes"; }else{ if($AdminName == "user && $AdminPass == "pass"){ ********//$Message = "Logged In";**************(goto "www.example.com)********** }else{ $Message = "Incorrect username or password"; } }}?> Link to comment https://forums.phpfreaks.com/topic/28172-open-a-php-page-prob-very-simple/ Share on other sites More sharing options...
alfone Posted November 22, 2006 Share Posted November 22, 2006 You're missing the closing " around "user on line 16. Link to comment https://forums.phpfreaks.com/topic/28172-open-a-php-page-prob-very-simple/#findComment-128856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.