Permalink
Browse files

Update example3.php

  • Loading branch information...
FranciscoP
FranciscoP committed Jul 15, 2013
1 parent 91e831f commit d19d3ddc3847b20c1c2908e2e95145baa4efa50e
Showing with 9 additions and 12 deletions.
  1. +9 −12 example3.php
View
@@ -74,15 +74,12 @@
mail($_POST['email'], 'Activate your account', $email);
}
}
-
-
-echo '<h1>Register</h1>
- <p><form method="post" action="'.$_SERVER['PHP_SELF'].'" />
- username: <input type="text" name="username" /><br /><br />
- password: <input type="password" name="pwd" /><br /><br />
- email: <input type="text" name="email" /><br /><br />
- <input type="submit" value="Register user" />
- </form>
- </p>';
-
-?>
+?>
+<h1>Register</h1>
+<p><form method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" />
+ username: <input type="text" name="username" /><br /><br />
+ password: <input type="password" name="pwd" /><br /><br />
+ email: <input type="text" name="email" /><br /><br />
+ <input type="submit" value="Register user" />
+</form>
+</p>

0 comments on commit d19d3dd

Please sign in to comment.