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 9004343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:52:30+00:00 2026-06-16T00:52:30+00:00

Possible Duplicate: What does PHP do with deprecated functions? My groupmate made the codes

  • 0

Possible Duplicate:
What does PHP do with deprecated functions?

My groupmate made the codes on a 1.7.4 Xampp and it runs smoothly on her side but when I run it on my pc, it doesnt run since I use the latest XAMPP. I installed an old version of xampp but its a pain in the neck cause apache and mysql wont even start. Looks like its not stable or something. So my last resort is hoping that there is a way running deprecated codes on my current xampp.

index.php

<?PHP



session_start();



include('inc/config.php');
?>

<html>
<title>Login</title>
<head>



<link rel="stylesheet" type="text/css" href="style.css">

<style TYPE="text/css">
      <!--
    a {text-decoration: none;}
      -->
</style>

<script language="Javascript">

function validate()
{
  susername=document.myform.susername.value;
  if (susername == "" || susername == null || susername.charAt(0) == ' ')
  {
    alert("Please enter your username")
    document.myform.susername.focus();
    return false;
  }
  else
    {
    password=document.myform.password.value;

    if (password == "" || password == null || password.charAt(0) == ' ')
    {
        alert("Password cannot be blank")
        document.myform.password.focus();
        return false;
    }

    }
}

</script>



</head>

<body bgcolor="white" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">




<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="760" height="350">
    <tr>
      <td width="1" height="2" class=outline></td>
      <td width="162" height="2" class=blue valign="top"></td>
      <td width="8" height="2"></td>
      <td width="580" height="2" valign="top">


<!---------------------------------Center panel starts here------------------------------->
<!---------------------main table starts------------------->
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="580" height="200">

<!-----------------------main table ends----------------------->
    <tr>
      <td width="580" height="200">

<!------------------------- susername password table starts--------------------->

<form name=myform method="post" action="login.php" onSubmit="return validate()">



<div align="center">
  <table border="0" cellpadding="3" cellspacing="1" width="350" height="11">
  <tr>
  <br>
  <br>
    <br>
      <br>
  </tr>
  <tr>
              <td width="350" colspan="3" height="34"><font class=tablackb>Please Enter Your Username and Password:</font></td>
            </tr>


    <tr>
      <td width="90" height="21" valign="middle" align="left"><font class=tablack>Username</font></td>
      <td width="10" height="21" valign="middle" align="center"><font class=tablack>:</font></td>
      <td width="250" height="21" valign="middle" align="left"><font class=tablack><input id="username" class=ainput type="text" name="name" placeholder="Username" size="30"></font></td>      
    </tr> 

    <tr>
      <td width="90" height="21" valign="middle" align="left"><font class=tablack>Password</font></td>
      <td width="10" height="21" valign="middle" align="center"><font class=tablack>:</font></td>
      <td width="250" height="21" valign="middle" align="left"><font class=tablack><input id="password" class=ainput type="password" name="password" placeholder="Password" size="30"></font></td>      
        </tr> 
    <tr>
    <td width="350" height="21" valign="middle" align="center" colspan="3"><font class=tablack>password must be 6-18 characters</font></td>
    </tr>
    <tr>

      <td width="350" colspan="3" height="21" class=white valign="middle" align="center" colspan="3"><font class=tablack> <input  type="submit" value="Submit" name="Submit">&nbsp; &nbsp; &nbsp; &nbsp; <input type="reset" value="Reset" name="Reset"></font></td>      
    </tr> 

  </table>
</div>
</form>
<center>
</center>
<!-------------------------------susername password table ends------------------------->
</td>
    </tr>





<!----------------------------------copy this for more cells start---------------------------->
    <tr>
      <td width="580" height="1"></td>
    </tr>
<!----------------------------------copy this for more cells ends---------------------------->


<!-------------------------------main table starts-------------------------->

  </table>
  </center>
</div>
<!--------------------------------main table ends------------------------------>

<!---------------------------------Center panel ends here---------------------------------></td>
      <td width="8" height="2"></td>
      <td width="1" height="2" class=outline></td>
    </tr>
  </table>
  </center>
</div>




</body>

</html>

login.php

  • 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-06-16T00:52:32+00:00Added an answer on June 16, 2026 at 12:52 am

    You can change the error reporting to stop reporting on deprecation warnings. See here.

    However you should very seriously considering updating the code to use a non-deprecated extension such as MySQLi or PDO_MySQL.

    Edit:
    Also the image you supplied suggests that you have not supplied the parameters for connecting to the database.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Does PHP have threading? I found this: http://php.net/manual/en/function.pcntl-fork.php But I can't tell
Possible Duplicate: php calculate float The accuracy of PHP float calculate Why does PHP
Possible Duplicate: Reference - What does this symbol mean in PHP? I have a
Possible Duplicate: Reference - What does this symbol mean in PHP? What's the difference
Possible Duplicate: PHP: Script for generating Crossword game? Does anyone know any PHP-based simple
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Why does php insert backslash while replacing double quotes How can you
Possible Duplicate: Does the order of class definition matter in PHP? class a {
Possible Duplicate: Reference - What does this symbol mean in PHP? In PHP what
Possible Duplicate: How can one use multi threading in php applications Does anybody know

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.