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 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 need to login to Amazon page: https://sellercentral-japan.amazon.com/gp/sign-in/sign-in.html/ref=pt_login_lgin_login with PHP cURL (without Amazon Web
I need to launch an app I've made just after login, before anything else
I'm doing some design/debugging in IRB and need to login a user and then
I need to implement login velocity checking for a web service. The service is
I need to store a login session when the user is login and remove
I need to retrieve the login ids of the user who is logged onto
I need to ensure that the user login form for Drupal can not be
I need to check if a specific login already exists on the SQL Server,
I need a button that takes login for certain user without entering the password.
I need to develop a service that will perform login through several login providers

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.