Advertisement
RahulShaw

POST

Oct 14th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. <?php
  2.  
  3.     if (isset($_POST['username']) && !empty($_POST['username']) &&
  4.         isset($_POST['password']) && !empty($_POST['password']) &&
  5.         isset($_POST['email']) && !empty($_POST['email'])
  6.     )
  7. {
  8.     echo 'yes';
  9.     unset($_POST);
  10. }
  11.  
  12. ?>
  13. <html>
  14. <body>
  15.  
  16. <form action="" method="post">
  17.  
  18. <p>username<br>
  19. <input name="username" type="text" />
  20. </p>
  21. <p>password<br>
  22. <input name="password" type="password"/> password should be more than 6 characters
  23. </p>
  24. <p>email<br>
  25. <input name="email" type ="text" >
  26. </p>
  27. <p>
  28. <input type="submit" name="submit" value="submit"/>
  29. </p>
  30.  
  31. </form>
  32. </body>
  33. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement