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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:00:56+00:00 2026-05-16T09:00:56+00:00

Alright, I don’t know if anyone has tried to do this yet, however. I

  • 0

Alright, I don’t know if anyone has tried to do this yet, however.

I have a website lets just call it localhost. for now. I have a form on that page. however, I want to be able to skip the form, and redirect my data to the form by using the basic authentication method. for example: http://admin:admin@localhost would send the username and password to my form.

Is there a way to do that without me having to modify the entire website?

  • 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-16T09:00:57+00:00Added an answer on May 16, 2026 at 9:00 am

    you don’t need to send it to the form.

    you can do something like this

    if(!isset($_SESSION['admin'])){
            //we are not logged in yet,
            if (!isset($_SERVER['PHP_AUTH_USER'])) {
                    header('WWW-Authenticate: Basic realm="Admin"');
                    header('HTTP/1.0 401 Unauthorized');
                    echo 'Please Contact us if you are having problems logging in';
                    exit;
            } else {
                    //not their first time through
                    //check their username and password here
                    $username = trim($_SERVER['PHP_AUTH_USER']);
                    $password = trim($_SERVER['PHP_AUTH_PW']);
                    ... your auth code here....  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, this one's interesting. I have a solution, but I don't like it. The
Alright... this seems complicated for me.. I don't know if it is. filename: add_types.js
Alright, I presented this question on the MSDN forums but have yet to receive
Alright. This is the situation. I have created a website with a black banner
Alright, I'm not very knowledgeable in Java, and I don't even know if this
Alright I don't see why this isnt working. It seems pretty simple. Here is
Alright so I have no idea how to even begin doing this But basically
Alright, i had this homework recently (don't worry, i've already done it, but in
Alright so I've got this script sort of working. The ajax call works and
Alright i tried this last time and it was too vague so I'll try

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.