Guest User

Untitled

a guest
May 16th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. if (isset($_POST['Submit']) &&
  2. !empty($_POST['nameR']) &&
  3. !empty($_POST['passR1']) &&
  4. !empty($_POST['passR2']) &&
  5. !empty($_POST['townR']) &&
  6. !empty($_POST['countryR']) &&
  7. !empty($_POST['userR'])) {
  8. if ($_POST['passR1'] != $_POST['userR'] && $_POST['passR2'] != $_POST['userR']) {
  9. if ($_POST['passR2'] == $_POST['userR'] || $_POST['passR1'] == $_POST['userR']) {
  10. echo 'The password is very unsecure!';
  11. }
  12. elseif ($_POST['passR1'] == $_POST['passR2']) {
  13. $HTML = <<<EOF
  14. <html>
  15. <head>
  16. <title>Code</title>
  17. </head>
  18. <body>
  19. <form method='post'>
  20. Username: <input type='text' name='user' /><br />
  21. Pass: <input type='password' name='pass' /><br />
  22. I agree: <input type='checkbox' name='ch1' />
  23. I disagree: <input type='checkbox' name='ch2' /><br />
  24. <input type='submit' value='Submit' name='SubmitTwo' />
  25. </form>
  26. </body>
  27. </html>
  28. EOF;
  29. echo $HTML;
  30. }
  31. elseif ($_POST['passR2'] != $_POST['passR1']) {
  32. echo 'Passwords do <u>not</u> match!';
  33. }
  34. }
  35. $GLOBALS['userR'] = $_POST['userR'];
  36. $GLOBALS['passR1'] = $_POST['passR1'];
  37. }
Add Comment
Please, Sign In to add comment