Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
Php register form help.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Tanis" data-source="post: 180752" data-attributes="member: 2124"><p>Try:</p><p> </p><p>[HTML]<body></p><p> </p><p> </p><p> </p><p><div class="header"></p><p><div class="wrapper"></p><p><div class="Logo"></div></p><p><div class="headernav"><font color="white"><b></p><p>Please login or register to enter the Dobby's Network website.</b></font></p><p></div></p><p> </p><p> </div></p><p> </div></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> <div id="wrapper_content"></p><p> <div class="left"></p><p> <div class="box"></p><p> <center><br></p><p> </p><p> <a href="#login_form" id="login_pop"></p><p> <img src="images/login.png"/></a></p><p> <br><br></p><p> </center></p><p> </div></p><p> </div></p><p> </p><p> <div class="right"></p><p> <div class="box"></p><p> <center><br></p><p> </p><p> </p><p> <a href="#join_form" id="join_pop"></p><p> <img src="images/register.png"/></a></p><p> </p><p> <br><br></p><p> </center></p><p> </div></p><p> </div></p><p> <br><br><center></p><p> <font color="red"><b><p>Warning: This is just a DEMO. Nothing actually works here at the moment<p></b></font></p><p> <center></p><p> </p><p> <!-- Popups --></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> <a href="#x" class="overlay" id="login_form"></a></p><p> <div class="popup"></p><p> </p><p> <h2>Welcome Guest!</h2></p><p> <p>Please login to gain access to the full website.</p><br></p><p> <div></p><p> <label for="login">Email</label></p><p> <input type="text" id="login" value="" /></p><p> </div></p><p> <div></p><p> <label for="password">Password</label></p><p> <input type="password" id="password" value="" /></p><p> </div></p><p> <center></p><p> <input type="button" name="login" value="Log In" /></p><p> </p><p> </center></p><p> </p><p> <a class="close" href="#close"></a></p><p> </div></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> <!-- popup form #2 --></p><p> </p><p> </p><p> <a href="#x" class="overlay" id="join_form"></a></p><p> <div class="popup"></p><p> </p><p> </p><p> </p><p> <?</p><p> </p><p>include_once "config.php";</p><p>if (isset($_POST['register'])) {</p><p> $email = $_POST['email'];</p><p> $password = $_POST['password'];</p><p> $firstname = strip_tags(mysql_real_escape_string($_POST['firstname']));</p><p> $lastname = strip_tags(mysql_real_escape_string($_POST['lastname']));</p><p> $memip = $_SERVER['REMOTE_ADDR'];</p><p> $date = date("d-m-Y");</p><p> if (empty($email) OR empty($password)) {</p><p> $final_report.= "Please complete the form below..";</p><p> }</p><p> else {</p><p> $check_members = mysql_query("SELECT * FROM `members` WHERE `email` = '$email'") or die(mysql_error());</p><p> if (mysql_num_rows($check_members) != 0) {</p><p> $final_report.="The username is already in use!";</p><p> } else if (strlen($password) <= 6 || strlen($password) >= 12) {</p><p> $final_report.="Your password must be between 6 and 12 digits and characters..";</p><p> } else if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {</p><p> $final_report.="Your email address was not valid..";</p><p> } else {</p><p> $create_member = mysql_query("INSERT INTO `members` (`id`,`email`, `password`, `firstname`, `lastname`, `ip`, `date`)</p><p>VALUES('','$email','$password','$firstname','$lastname','$memip','$date')");</p><p> $final_report.="Thank you for registering, you may login.";</p><p> }</p><p> }</p><p> }</p><p> </p><p>echo "I didn't set the register POST.";</p><p>?></p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> <h2>Sign Up</h2></p><p> <p>Please enter the details you would like to<br></p><p> register with here. You MUST be <br>atleast thirteen</p><p> to register.</p><br></p><p> <form action="" method="post"></p><p> <div></p><p> <label for="email">Email</label></p><p> <input type="text" name="email" value="" /></p><p> </div></p><p> <div></p><p> <label for="pass">Password</label></p><p> <input type="password" name="password" value="" /></p><p> </div></p><p> <div></p><p> <label for="firstname">First name</label></p><p> <input type="text" name="firstname" value="" /></p><p> </div></p><p> <div></p><p> <label for="lastname">Last name</label></p><p> <input type="text" name="lastname" value="" /></p><p> </div></p><p> <div></p><p> <label for="sex">Sex</label></p><p> <input type="radio" name="sex" value="male">Male</input></p><p> <input type="radio" name="sex" value="female">Female</input></p><p> </div></p><p> <input type="submit" id="register" value="Sign Up" /></p><p> </form></p><p> </p><p> </p><p> </p><p> <center>&nbsp;&nbsp;&nbsp;or&nbsp;&nbsp;&nbsp;<a href="#login_form" id="login_pop">Log In</a></p><p> </p><p> <a class="close" href="#close"></a></p><p> </center></p><p> </div></p><p> </p><p> </p><p> </div></p><p> </p><p> </div>[/HTML]</p></blockquote><p></p>
[QUOTE="Tanis, post: 180752, member: 2124"] Try: [HTML]<body> <div class="header"> <div class="wrapper"> <div class="Logo"></div> <div class="headernav"><font color="white"><b> Please login or register to enter the Dobby's Network website.</b></font> </div> </div> </div> <div id="wrapper_content"> <div class="left"> <div class="box"> <center><br> <a href="#login_form" id="login_pop"> <img src="images/login.png"/></a> <br><br> </center> </div> </div> <div class="right"> <div class="box"> <center><br> <a href="#join_form" id="join_pop"> <img src="images/register.png"/></a> <br><br> </center> </div> </div> <br><br><center> <font color="red"><b><p>Warning: This is just a DEMO. Nothing actually works here at the moment<p></b></font> <center> <!-- Popups --> <a href="#x" class="overlay" id="login_form"></a> <div class="popup"> <h2>Welcome Guest!</h2> <p>Please login to gain access to the full website.</p><br> <div> <label for="login">Email</label> <input type="text" id="login" value="" /> </div> <div> <label for="password">Password</label> <input type="password" id="password" value="" /> </div> <center> <input type="button" name="login" value="Log In" /> </center> <a class="close" href="#close"></a> </div> <!-- popup form #2 --> <a href="#x" class="overlay" id="join_form"></a> <div class="popup"> <? include_once "config.php"; if (isset($_POST['register'])) { $email = $_POST['email']; $password = $_POST['password']; $firstname = strip_tags(mysql_real_escape_string($_POST['firstname'])); $lastname = strip_tags(mysql_real_escape_string($_POST['lastname'])); $memip = $_SERVER['REMOTE_ADDR']; $date = date("d-m-Y"); if (empty($email) OR empty($password)) { $final_report.= "Please complete the form below.."; } else { $check_members = mysql_query("SELECT * FROM `members` WHERE `email` = '$email'") or die(mysql_error()); if (mysql_num_rows($check_members) != 0) { $final_report.="The username is already in use!"; } else if (strlen($password) <= 6 || strlen($password) >= 12) { $final_report.="Your password must be between 6 and 12 digits and characters.."; } else if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { $final_report.="Your email address was not valid.."; } else { $create_member = mysql_query("INSERT INTO `members` (`id`,`email`, `password`, `firstname`, `lastname`, `ip`, `date`) VALUES('','$email','$password','$firstname','$lastname','$memip','$date')"); $final_report.="Thank you for registering, you may login."; } } } echo "I didn't set the register POST."; ?> <h2>Sign Up</h2> <p>Please enter the details you would like to<br> register with here. You MUST be <br>atleast thirteen to register.</p><br> <form action="" method="post"> <div> <label for="email">Email</label> <input type="text" name="email" value="" /> </div> <div> <label for="pass">Password</label> <input type="password" name="password" value="" /> </div> <div> <label for="firstname">First name</label> <input type="text" name="firstname" value="" /> </div> <div> <label for="lastname">Last name</label> <input type="text" name="lastname" value="" /> </div> <div> <label for="sex">Sex</label> <input type="radio" name="sex" value="male">Male</input> <input type="radio" name="sex" value="female">Female</input> </div> <input type="submit" id="register" value="Sign Up" /> </form> <center> or <a href="#login_form" id="login_pop">Log In</a> <a class="close" href="#close"></a> </center> </div> </div> </div>[/HTML] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Php register form help.
Top