Results 1 to 8 of 8

Thread: Convert to PHP5.3

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2012
    Posts
    81

    Question Convert to PHP5.3

    Can someone convert this to php5.3
    admin.php
    Code:
    <?php
    session_start();
    if(!session_is_registered('myPass')) {
    
    	header("location:index.php");
    }
    
    ?>
    check.php
    Code:
    <?php
    $myUsername=$_POST['myUsername'];
    $myPass=$_POST['myPass'];
    
    if ($myUsername==("Admin") & $myPass==("Pass") ) {
    
    	session_register('myUsername');
    	session_register('myPass');
    	header("location:admin.php");
    
    }
    else echo 'Something went wrong';
    
    ?>
    Last edited by vmen; Oct 30th, 2012 at 02:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width