Friday 4 July 2014

Find error in following PHP code

Posted by Unknown | 02:13 Categories:
Hello friends.....!!!

Today again i am here with a error finding practice for PHP develolpers...

Here is a code for login form....


<html>
<head>
<title>REGISTRATION FORM</title>
<body>

<form name=registration method="post" action="registration.php">
<!-- we will create registration.php after registration.html -->
USERNAME:<input type="text" name="name" value=""></br>
EMAIL-ID:<input type="text" name="email" value=""></br>
PASWORD:<input type="text" name="password" value=""><br>
RE-PASWORD:<input type="text" name="repassword" value=""></br>
<input type="submit" name="submit" value="submit">
</form>

</body>
</head>
</html>
 
 

Find errors in this code  

 

Leave a reply......

 


 

8 comments:

  1. 1. Quotes are missing in form's name, it should name="registration"
    2. Password field type should be "PASSWORD" instead of TEXT - Security issue.

    ReplyDelete
  2. yes you are right... but there is more mistakes... find it out...

    ReplyDelete
  3. 3. Ah! head need to close before body....

    ReplyDelete
  4. no thats not a mistake..... here is one more mistake... find out...

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Replies
    1. yes thats right.... thank you for replying...

      Delete
    2. Great! Thanks Mohit.... It is a nice one... Do keep posting :)

      Delete

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube