Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question loging into a remote site from a page

    Ok, I have my username/password login box and the validation script, but how can I get it to log into a remote site(http://allteensrule.proboards40.com)?

    Validation Code
    Code:
    <script type="text/javascript">
    function validate(oForm)
    {
      var pwd = oForm.pwd1.value.toLowerCase();
      if (oForm.username.value.toLowerCase() == "Mike" && oForm.pwd1.value.toLowerCase() == "thisisnotreal"){
        window.location = "contentpage.htm";
      }
      else
      {
        alert("Username or Password is incorrect, you should not be here.");
        oForm.username.focus();
    	oForm.username.value="Try Again!";
    	oForm.pwd1.value="";
    	window.location="http://www.allteensrule.com";
      }
    }
    </script>
    Form Code
    Code:
    <form id="form1" action="">
    			<table>
    				<tr>
    					<td>Username: </td><td><input type="text" name="user" /></td>
    				</tr>
    				<tr>
    					<td>Password: </td><td><input type="text" name="pass" /></td>
    				</tr>
    				<tr>
    					<td colspan="2" align="center"><input type="submit" value="Login" onclick="validate(this.form)"</td>
    				</tr>
    			</table>
    		</form>
    Last edited by atrsite; 12-09-2004 at 05:41 AM.

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh, I thought this was a challange but it is a question.....

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •