Friday, 4 July 2014

Find error in following PHP code

Posted by M2Software Solutions Solutions Pvt. Ltd | 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....

<title>REGISTRATION FORM</title>

<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">


Find errors in this code  


Leave a reply......




  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.

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

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

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

  5. This comment has been removed by the author.

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

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


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