Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!empty($_POST['pseudo']))
- {
- mysql_connect("localhost", "root", "");
- mysql_select_db("nom_db");
- $passe = mysql_real_escape_string(htmlspecialchars($_POST['passe']));
- $passe2 = mysql_real_escape_string(htmlspecialchars($_POST['passe2']));
- if($passe == $passe2)
- {
- $pseudo = mysql_real_escape_string(htmlspecialchars($_POST['pseudo']));
- $email = mysql_real_escape_string(htmlspecialchars($_POST['email']));
- $passe = sha1($passe);
- mysql_query("INSERT INTO validation VALUES('', '$pseudo', '$passe', '$email')");
- }
- else
- {
- echo 'wrong password';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement