Results 1 to 2 of 2

Thread: Gives error on button click even

  1. #1
    Join Date
    Nov 2009

    Gives error on button click even

    When I click on Register button I get this error -
    Message: Object expected
    Line: 20
    Char: 1
    Code: 0
    URI: http://localhost/goodlogin/registerform.php

    This is my registerform.php code -

    HTML Code:
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <script type="forms.js" type="text/javascript"></script>
    <script type="sha512.js" type="text/javascript"></script>
    <body  bgcolor="black"    style="color:white;">
    <FORM ACTION="register.php" METHOD="POST">
    <h1>welcome to the registration page</h1>
    please input the registration details to create an account here<br>
    <table border="2">
    <td>email :</td><td><input name="regemail" type="text" size"30"></input></td>
    <td>password :</td><td><input name="regpass1" type="password" size"20"></input></td>
    <input type="button" value="Register" onclick="formhash(this.form, this.form.regpass1);" /> </input>
    And this is my forms.ja code -

    function formhash(form, password) {
      // Create a new element input, this will be out hashed password field.
      var p = document.createElement("input");
      // Add the new element to our form.
       p.name = "p";
       p.type = "hidden"
       p.value = hex_sha512(password.value);
       // Make sure the plaintext password doesn't get sent.
       password.value = "";
       // Finally submit the form.

  2. #2
    Join Date
    Mar 2009
    where is hex_sha512() defined ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles