Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML
- <form action='signup.php' method='post' accept-charset="UTF-8">
- <label class="string" for="user_username">Username</label>
- <input id="user_username" style="margin-bottom: 15px;" type="text" name="username" size="30" />
- <label class="string" for="user_email">Email</label>
- <input id="user_email" style="margin-bottom: 15px;" type="text" name="mail" size="30" />
- <label class="string" for="user_password">Password</label>
- <input id="user_password" style="margin-bottom: 15px;" type="password" name="passwd" size="30" />
- <input class="btn btn-primary"
- style="clear: left;
- width: 100%;
- height: 32px;
- font-size: 13px;"
- type="submit" name="commit" value="Sign Up" />
- </form>
- SIGNUP.PHP
- <?php
- session_start();
- include_once("header.php");
- include_once("functions.php");
- // THIS SECTION THAT FOLLOWS IS TO GRAB THE FIELD VALUES
- $userid = $_POST('username');
- $passwd = $_POST('passwd');
- $email = $_POST('mail');
- $status = 'active';
- echo "<p> Username = ".$userid."</p>";
- echo "<p> Password = ".$passwd."</p>";
- echo "<p> Email = ".$email."</p>";
- echo "<p> Status = ".$status."</p>";
- add_user( $userid, $passwd, $email, $status );
- header("Location:index.php");
- ?>
Add Comment
Please, Sign In to add comment