Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('functions.php.inc');
- if (strlen($_POST['email']) > 0 AND strlen($_POST['name'] > 0) AND strlen($_POST['password']) > 0)
- {
- echo "ok, this worked";
- include ('db.php.inc');
- $email = $_POST['email'];
- $user = $_POST['name'];
- $password = salt($POST_['password']);
- $sql = "INSERT into users SET email=\"$email\", name=\"$user\", password=\"$password\";";
- mysql_query($sql);
- }
- ?>
- <form name="input" action="" method="post">
- Email: <input type="text" name="email" /><br />
- Name: <input type="text" name="name" /><br />
- Password: <input type="password" name="password"><br />
- <input type="submit" value="Submit" />
- </form>
- <?php
- echo $email;
- echo "<br />";
- echo $user;
- echo "<br />";
- echo $password;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement