Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_POST['Submit']) &&
- !empty($_POST['nameR']) &&
- !empty($_POST['passR1']) &&
- !empty($_POST['passR2']) &&
- !empty($_POST['townR']) &&
- !empty($_POST['countryR']) &&
- !empty($_POST['userR'])) {
- if ($_POST['passR1'] != $_POST['userR'] && $_POST['passR2'] != $_POST['userR']) {
- if ($_POST['passR2'] == $_POST['userR'] || $_POST['passR1'] == $_POST['userR']) {
- echo 'The password is very unsecure!';
- }
- elseif ($_POST['passR1'] == $_POST['passR2']) {
- $HTML = <<<EOF
- <html>
- <head>
- <title>Code</title>
- </head>
- <body>
- <form method='post'>
- Username: <input type='text' name='user' /><br />
- Pass: <input type='password' name='pass' /><br />
- I agree: <input type='checkbox' name='ch1' />
- I disagree: <input type='checkbox' name='ch2' /><br />
- <input type='submit' value='Submit' name='SubmitTwo' />
- </form>
- </body>
- </html>
- EOF;
- echo $HTML;
- }
- elseif ($_POST['passR2'] != $_POST['passR1']) {
- echo 'Passwords do <u>not</u> match!';
- }
- }
- $GLOBALS['userR'] = $_POST['userR'];
- $GLOBALS['passR1'] = $_POST['passR1'];
- }
Add Comment
Please, Sign In to add comment