Results 1 to 8 of 8

Thread: Convert to PHP5.3

Threaded View

  1. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Convert to PHP5.3

    This is untested but should work.

    php Code:
    1. <?php
    2. session_start();
    3. if (isset($_SESSION['myPass'])){
    4.  header("Location: index.php");
    5. }
    6. ?>
    7. <?php
    8. $myUsername="";
    9. $myPass="";
    10. //convert the POST variables from the html to local variables
    11. if (isset($_POST['myUsername'], $_POST['myPass'])){
    12. $Admin = mysql_real_escape_string($_POST['myUsername']);
    13. $Pass = mysql_real_escape_string($_POST['myPass']);
    14.  header("Location: admin.php");
    15. }else {
    16.     echo 'Something went wrong';
    17.  
    18. }
    19. ?>
    Last edited by Nightwalker83; Oct 31st, 2012 at 11:12 PM. Reason: Fixed spelling!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

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