Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:51:43+00:00 2026-05-28T13:51:43+00:00

My admin panel of my website is no longer working after the php updated

  • 0

My admin panel of my website is no longer working after the php updated of my hosting

here are the files code that looks very old so i wonder how to edit its code.

1) login.php (it is just simple form)

<form method="post" name="login" id="login" action="admin.php">
Username : <input name="loginid" id="loginid" type="text">
Password : <input name="password" id="password" type="password">
</form> 

2) It send informations to admin.php (here i think there is something been no longer works)

<?PHP
session_start();
require_once("../config.php"); // db connection

$loginid = $HTTP_POST_VARS['loginid'];
$password = $HTTP_POST_VARS['password'];

$sql= "select * from settings where admuser='$loginid' and admpass='$password'";
$result = mysql_query($sql) or die("query failed: $sql");

if($line=mysql_fetch_array($result)){

session_register("loginid");
header("Location: home.php ");
exit;

}else{

$msg= "Login Failed";
session_register('msg');
header("Location: login.php ");
exit;

}
?>

However it is very simple as my knowledge in php is very small and old but it didn’t worked ! so any idea

Note : PHP Version 5.2.17 | register_globals = On (also not working if it Off)

Thanks for help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:51:44+00:00Added an answer on May 28, 2026 at 1:51 pm

    These have been deprecated:

    $loginid = $HTTP_POST_VARS['loginid'];
    $password = $HTTP_POST_VARS['password'];
    

    should be:

    $loginid = $_POST['loginid'];
    $password = $_POST['password'];
    

    and session_register($msg) should be:

    session_start();
    $_SESSION['msg'] = 'Login Failed';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm about to code a php/mysql platform that does the following: Admin panel User
I'm currently working on a website admin panel, I added a form that adds
I am working on a control panel (admin pages) for a website. All the
Sudden my website admin panel no longer works and i've tired many ways to
I have a log function on my admin panel that checks user input for
I have integrated CKeditor with my admin panel (php) I have writtien a function
I am allowing users of the admin panel of my website to upload photos,
I have created an admin panel for a client in PHP, which requires a
On the admin panel of my website, I have a page to add a
A quick question. Pointing to admin panel in my website on IIS 5.1 (XP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.