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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:01:48+00:00 2026-05-15T06:01:48+00:00

This page worked like a charm for years… enter the correspondng user id and

  • 0

This page worked like a charm for years… enter the correspondng user id and password and you would be redirected to your directory. Now suddenly, all attempts to log in – valid or otherwise – result in the page remaining static… no message, no redirect, nothing.

Nothing in the code has changed, it just plain doesn’t work anymore. Could this be the result of some kind of change on the server side?

Yeah, I know it’s not super secure, but it was good enough for our purposes. I’m certainly open to better suggestions. I just need it to work… and keep working.

Please be gentle! I know almost nothing of programming.

Here is the page code:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<link href="ilium.css" rel="stylesheet" media="screen">
<title>Ilium: Client Login</title>
</head>
<body bgcolor="#bfbfcc" background="img/loginbg.gif">
<?php


/* init vars */
$userExists = false;
$userIndex = -1;
$authenicated = false;

/*********************************************** 
* edit this to add new users/password         *
* - add user/pass/directory to the array      *
* below: must be in same array index to work  *
***********************************************/
$user = array('foo', 'bar');
$pass = array('foo', 'bar');
$directory = array('foo', 'bar');

// run user/pass check if data passed
if (isset($username) && isset($password))
{

// check if user name exists
for ($i = 0; $i < count($user); $i++)
{
if ($user[$i] == $username)
{
$userExists = true;
$userIndex = $i;
break;
}
}

// so user exists, now test password
if ($userExists)
{
$message = $message . "Username Valid<br>\n";

if ($pass[$userIndex] == $password)
{
$authenicated = true;
$link = "/incoming/clients050203/" . $directory[$userIndex] . "/";
$message = $message . "Password Valid - Redirecting to your folder...<br>\n";
}
else
{
$message = $message . "Incorrect Password<br>\n";
}
}
else
{
$message = $message . "Incorrect User Name<br>\n";
}

}
?>




<?php

// user has been authenicated - move them to the correct directory
if ($authenicated)
{
    echo "<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=" . $link . "\">";
}
?>

<img src="img/spacer.gif" alt="" width="1" height="112" border="0">
<form action="login.php" method="post">

<table width="496">
<tr>
 <td width="100"></td>
 <td colspan="4" width="469"><img src="img/please.gif" alt="" width="469" height="19" border="0"></td>
</tr>
<tr>
 <td width="100"><img src="img/spacer.gif" alt="" width="100" height="1" border="0"></td>
 <td width="227">

   <img src="img/spacer.gif" alt="" width="227" height="1" border="0"><br>
 </td>
<td align="right" valign="top" width="84"><input type="text" name="username" size="12"><br></td>
 <td width="43"><img src="img/spacer.gif" alt="" width="43" height="1" border="0"><br>
  <br>
 </td>
 <td align="right" valign="top" width="109"><input type="password" name="password" size="16">
  <p><br>
  </p>
 </td>
</tr>
<tr>
 <td width="100"></td>
 <td valign="top" width="227"><div class="messages"><?=$message?></div></td>
<td width="84"><br>
 </td>
 <td width="43"><br>
 </td>
 <td align="right" width="109"><input type="image" src="img/enter.gif" ALT="enter"><br>
  <br>
  <br>
  <br>
  <br>
 </td>
</tr>
</table>

 </form>
 </body>
 </html>
  • 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-15T06:01:49+00:00Added an answer on May 15, 2026 at 6:01 am

    It looks like you’re depending on global variables being initialized, rather than using them correctly. You use $username and $password without initializing them. The correct way would be to do:

    $username = $_POST[‘username’];
    $password = $_POST[‘password’];

    Before you use them. This would be a result in them updating stuff on the server side.

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

Sidebar

Related Questions

This page mentions how to trunc a timestamp to minutes/hours/etc. in Oracle. How would
in this page http://api.jquery.com/category/effects/ when you put 'up'(keyboard) and 'down',then put 'enter',it will go
I have a directory that looks like this: pages/ folder1/ folder1.filename1.txt folder1.filename2.txt folder2/ folder2.filename4.txt
This page from Adobe says to add a wmode parameter and set its value
This page displays beautifully in firefox but i get all kinds of problems when
This page in the Android documentation defines an element id as follows: <TextView android:id=@+id/label
This page indicates that TabPage has a GotFocus event, but in Visual Studio 2008
On this page in the Subversion manual , it says that When you commit
On this page there is a list of footer links that have a little
Consider this page @ http://www.bloodbone.ws/screwed.html I need to be able to have the a.grow

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.