Jump to content

Open a php page - prob very simple


jug

Recommended Posts

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 advance

jug

<?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

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.