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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:55:55+00:00 2026-05-24T11:55:55+00:00

Our web-designer just finished up our site, and it has an HTML Form with

  • 0

Our web-designer just finished up our site, and it has an HTML Form with Text Inputs for Username/Password, and a Drop-Down box so they can choose where they are logging in. Since HTML doesn’t have anything that will work with this I don’t believe, what would be the best way to do it?

I am assuming Javascript, but I have never used it before, and really have no idea what to even search for to apply it in this case.

Current Form Code:

<form>
    <input class="binput" name="username" style="margin-left: 40px;" value="Username">
    <input class="binput" name="password" value="Password">
        <select class="binput" style="margin-left: 40px; width: 130px;">
            <option>Billing Panel</option>
            <option>Voice Panel</option>
            <option>Game Panel</option>
        </select>

    <input type="submit" class="blogin" value="Log In">
</form>

Panel 1 Login Integration Example:

<form method="post" action="http://www.yourdomain.com/whmcs/dologin.php">
Email Address: <input type="text" name="username" size="50">
Password: <input type="password" name="password" size="20">
<input type="submit" value="Login">
</form>

Panel 2 Login Integration Example:

<form method="POST" action="http://demo.tcadmin.com/templates/default/login.aspx">
  <table border="0" id="table1"><br />
    <tr><td>User:</td><td><input type="text" name="USERID" size="20"></td></tr>
    <tr><td>Password:</td><td><input type="password" name="PASSWORD" size="20"></td></tr>
  </table>
  <input type="submit" value="Submit" name="B1"><input type="reset" value="Reset">
</form>
  • 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-24T11:55:56+00:00Added an answer on May 24, 2026 at 11:55 am
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html  >
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>Title </title>
    </head>
    <body>
    <form method="POST" action="" name="frmLogin" id="frmLogin" onSubmit="return   sbmt();">
        <input class="binput" name="username" style="margin-left: 40px;" value="Username" id="usr">
        <input class="binput" name="password" value="Password" type="password" id="pwd">
            <select class="binput" style="margin-left: 40px; width: 130px;" onchange="changeAction(this);" name="loginSite" id="loginSite">
                <option value="0" Selected >Select One</option> 
            <option value="1">Billing Panel</option>
                <option value="2">Voice Panel</option>
                <option value="3">Yahoo! Mail</option>
            </select>
    
        <input type="submit" class="blogin" value="Log In">
    </form>
    <script language="">
    //Every element in LoginInfo is array of informations about one site!
    var LoginInfo= new Array(
                    new Array("usr","pwd",""),
                    new Array("usr","pwd","http://www.yourdomain.com/whmcs/dologin.php"),
                    new Array("username","password","http://demo.tcadmin.com/templates/default/login.aspx"),
                    new Array("usrname","pass","https://login.yahoo.com/config/login_verify2?&.src=ym"));
    
    function changeAction(s){
    
        var loginSite = s.value;
        document.getElementById('usr').name=LoginInfo[loginSite][0];
        document.getElementById('pwd').name=LoginInfo[loginSite][1];
        document.getElementById('frmLogin').action=LoginInfo[loginSite][2];
    
    }
    
    function sbmt(){
    
    
        var user = document.getElementById('usr');
        if(!user.value || user.value=="Username"){
            return false;
        }
        var pwd = document.getElementById('pwd');
        if(!pwd.value || pwd.value=="Password"){
            return false;
        }
    
        var site =document.getElementById('loginSite');
        if(  site.value=="0"){
            return false;
        }
            return true;
    }
    </script>
    </body>
    </html>
    

    I edited the code!
    I hope this one solve your problem:)

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

Sidebar

Related Questions

Recently our newest web designer asked me why we use ASP.NET for our website.
One of our web designers is working on a site at the moment and
Our web team has been asked to build some user interfaces in Sharepoint. The
Our web designer suggested using Cambria as a font. In looking at various font
Currently our team (web devs, one designer and one copywriter) all work on separate
We are programming a web application (not 'just' a web site, but functionality-wise a
I've developed a data form web part in SharePoint Designer 2010. The web part
We are currently developing a few web applications and are letting our designers convert
We're not doing real web development. We get our HTMLs from our designers, and
Our web services are distributed across different servers for various reasons (such as decreasing

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.