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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:43:18+00:00 2026-06-08T08:43:18+00:00

Hi I have the following code: <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <title>Registration Form</title>

  • 0

Hi I have the following code:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Registration Form</title>

<script type="text/javascript">
function validateForm() {
    var x = document.forms["myForm"]["uname"].value;
    var y = document.forms["myForm"]["pass"].value;
    if (x == null || x == "") {
        alert("UserName must be filled out");
        return false;
    }
    if (y == null || y == "") {
        alert("Password must be filled out");
        return false;
    }
}
</script>

</head>
<body>
    <h2> Register new GreenHouse </h2>
    <div>
    <form id="login" name= "myForm" method="put" action="" onsubmit="return validateForm()">
        <fieldset id="inputs">
            <input name="uname" id="username" type="text" placeholder="Username" autofocus required>   
            <input name="pass" id="password" type="password" placeholder="Password" required>
        </fieldset>
        <fieldset id="actions">
            <input type="submit" id="submit" value="Log in">
        </fieldset>
        </form>
    </div>
</body>
</html>

I want to be able to use values of username and password and create a new account at another website (such as yahoo or google). I am not quite sure how to start doing this. The basic idea when someone fill in the text-boxes a new account with the same userID and password (as they put in) will be created for them. I would be glad if someone could show me the way or show me a tutorial about this.

  • 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-06-08T08:43:20+00:00Added an answer on June 8, 2026 at 8:43 am

    There are ethical and possibly legal (as well as technical) issues surrounding the creation of a user account on Google or Yahoo in the manner you suggest. The user should just create the account directly.

    You can move forward, though, by tidying up your Javascript as follows 🙂

    function validateForm() {
        var form = document.forms.myForm,
            x = form.uname.value,
            y = form.pass.value;
    
        if (x === null || x === "") {
            alert("UserName must be filled out");
            return false;
        }
        if (y === null || y === "") {
            alert("Password must be filled out");
            return false;
        }
    }
    

    EDIT (in light of your comment):

    If you own the second website, then the ethical and legal issues disappear. If both sites are hosted on the same server and you have direct access to the database, it really doesn’t matter which website the account is created through.

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

Sidebar

Related Questions

I have the following code: <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <title></title> <style type=text/css> body
I have the following code <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <title>Untitled Document</title>
I Have Following codes: <html> <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8> <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js></script> <script
I have the following on my main jsf wrapper page: <head> <meta http-equiv=Content-Type content=text/xhtml;
I have the following HTML Code <%@ Page Language=C# %> <html> <head> <title></title> </head>
I have the following code: <!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd> <html> <head>
I have the following code <xsl:result-document href=output1/output3/index.html format=html> <html> <head> <SCRIPT LANGUAGE=JavaScript> function getParams()
I have the following html and css code: <!DOCTYPE HTML> <html> <head> </head> <body>
I have the following simple code: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
I have uploaded the following simple HTML code to http://losthobbit.net/temp/anchor.html <!DOCTYPE HTML PUBLIC -//W3C//DTD

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.