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

  • Home
  • SEARCH
  • 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 4080128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:53:25+00:00 2026-05-20T17:53:25+00:00

I need a login to let 10 students to view educational material. Simple is

  • 0

I need a login to let 10 students to view educational material. Simple is good.

Perhaps it just redirects to a page if student logs in correctly. Can you send me a link or example, or best tutorial?

I was told JavaScript alone doesn’t work, so the next simplest thing is preferred.
If there’s an example where I don’t have to rename all of my pages ‘php’, that would be better.
Thanks,

  • 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-20T17:53:26+00:00Added an answer on May 20, 2026 at 5:53 pm

    You could possibly “do” it with JavaScript if you did some kind of AJAX function which called a php page, and then returned your value. This could work, and it’s how a lot of sites do their logins actually. So, your client wouldn’t have to rename their site, and you could just set up an array of logins on the php page.

    This would NOT be secure at all, but it would work just fine.

    I guess you would do something like this (I’m going to use jQuery because it’s easier to do Ajax with it. It’s really easy to use, and if you’re going to learn Javascript, it’s probably better nowadays to know the basics and then use a framework library like jQuery)

    $(document).ready(function(){
      $("#NAME-OF-SUBMIT-BUTTON").submit(function(){
        var username = $(this).find("#username");
        var password = $(this).find("#password");
        $("NAME-OF-DIV-FOR-RETURN").load('login.php', {['parameters']:,[username,password]},function(responseText){
          if(responseText == 'SUCCESSFUL-RESPONSE-TEXT'){
            $("#NAME-OF-FORM").html("Login Successful");
          }
        });
      });
    });
    

    and of course you’re going to want to set a session variable or cookie or something on your php page to indicate the user has logged in. Again, this is not very secure, but it’s what I would do if it were like a homework assignment or just SUPER temporary. Of course, I would suggest making hard-coded usernames and passwords in an array on your original page in PHP with a postback to itself if you were going to go that temporary. Using Javascript and Ajax for this just seems like a bit much.

    But, you requested it!

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

Sidebar

Related Questions

I have a simple web page that till now didn't need any login. It
I need to create a cherrypy main page that has a login area. I
I need a simple window with three input boxes and three labels (login name,
What role should I give a sql login if I need the login to
We have TFS installed in a US server. We need to login into VPN
For example, if I have a user model and I need to validate login
I need to save a user's login information in encrypted form for this application
I need to automate a process involving a website that is using a login
In a current project I need to support finding a User by login credentials
i'm having to two tables, which i need to compare both the table. Let

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.