PLC BLOG | SIGNUP LOGIN PAGE IN PHP WITH DATABASE (MYSQL)
Warning: include(../navbar.php): Failed to open stream: No such file or directory in /home/u658851932/domains/plcblog.in/public_html/php/php sign and signup page template.php on line 54

Warning: include(): Failed opening '../navbar.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u658851932/domains/plcblog.in/public_html/php/php sign and signup page template.php on line 54

Warning: include(../../socialplugin1.php): Failed to open stream: No such file or directory in /home/u658851932/domains/plcblog.in/public_html/socialplugin.php on line 1

Warning: include(): Failed opening '../../socialplugin1.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u658851932/domains/plcblog.in/public_html/socialplugin.php on line 1
lg-12 col-12 fb-share-button">

Share on Facebook

Share on twitter

Share on Whats-App

user registration is most important for website, it helps to manage the record and valuable information of about your visitors/page memebers. complete user registration and signin form in php. In this article, You know how to make a registration form with complete validation like email, mobile.Welcome.Php: When A Visitors Open Your Page I.E. Welcome.Php, If Visitor Are Not Login So Page Redirect To Login Page. If Visitors Dont Have Account On This Website So There Is Register Or Sign Up Option Availble On Sign In Page. After Successfully Registration Or Sign In User Are Access Your Welcome Page. This Is A Very Simple Page With Little Style. You Can Manage As You Want. For Download Complete Source Link Below.

Create A user Register Form

register.php

make a simple user registration form where user enter their details like name, email, mobile no etc. i am using method post.


code for register.php

<form action ="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"; method="POST">

<div class="form_div">
<div class="header_register">
<p>SignUP</p>
<?php include_once('action_register.php'); ?>
<hr>
<p style="text-decoration: none;font-size: 20px;">Already Member
<a href="login.php" style="text-decoration: none;font-size: 20px; 
color: white;"> <u>SIGN IN</u></a></p> 
</div>
	<label for="name">Name</label>
	<input  type="text" class="" name="name" placeholder="Enter Your Name:">
	<hr class="hr_style">
	
<label for="email">Email</label>
	 <input type="email" name="email" placeholder="Enter Your email">
  <hr class="hr_style">
  
	 <label for="password">Password</label>
	<input type="password" name="password" placeholder="Enter password">
  <hr class="hr_style">
  
	<label for="mobile">Mobile</label>
   <input type="number" id="mobile" name="mobile" placeholder="10 digit mobile no">
   <hr class="hr_footer">
   
   <div class="header_register">
  
 <button class="submit_button" name="SIGNUP"  >SIGN UP</button>
 
</div></div> </form>

css style


<style>
input{
width: 70%;padding: 8px 10px;margin-left: 60px;box-sizing: border-box;
display: block; border: 1px solid grey;
border-radius: 6px;font-size: 15px; align-content: center;}

.form_div{
width: 28%;background-color:
 white;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
border: 2px solid #6749b6;margin-left: 450px;margin-top: 50px;	}

.form_div label{color:black;font-size: 20px;width: 30%;margin-left: 60px;}

.header_register 
{ background-color: #6749b6;color: white;text-align: center;
font-size: 30px;margin-top: 0px;padding: 10px 20px;}

.hr_style{width: 70%;border:1px solid transparent;}

.submit_button{padding: 10px 20px;background-color: #f2f2f2;border: 1px solid #f2f2f2;font-size: 20px;}
</style>
		

Create A mysql database

CREATE TABLE `user_register` (
  `id` int(200) NOT NULL,
  `name` varchar(1000) NOT NULL,
  `email` varchar(1000) NOT NULL,
  `password` longtext NOT NULL,
  `mobile` bigint(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

sign in form

<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="POST">

<div class="form_div">
<div class="header_register">
<p>SignUP</p>
<?php 
include_once('action_register.php');
?>	
<hr>
<p style="text-decoration: none;font-size: 20px;">Become Member<a href="register.php" style="text-decoration: none;font-size: 20px; color: white;"> <u>Register</u></a></p> 
</div>
	<label for="name">Email</label>
	 <input type="email" name="email" placeholder="Enter Your email">
  <hr class="hr_style">
	 <label for="name">Password</label>
	<input type="password" name="password" placeholder="Enter password">
  <hr class="hr_style">
   <hr class="hr_footer">
   <div class="header_register">
 <button class="submit_button" name="login"  >Login</button>
</div>   </div></form>
	

code/index.php

		<div class="form_div">
<div class="header_register">
<p>SignUP</p>
<?php 
include_once('action_register.php');
?>	
<hr>
<?php  if (isset($_SESSION['email'])) : ?>

<p style="text-decoration: none;font-size: 20px;">WELCOME <br><a  href="?logout" style="text-decoration: none;font-size: 20px; color: white;"> <u>Log Out</u></a>
<br>
<p><?php echo "Email:-".  $_SESSION['email']; ?></p></p> 

</div>   </div>
 <?php endif ?>
 <?php  if (!isset($_SESSION['email'])) : ?>
 <?php 
header('location: login.php');
?>       
 <?php endif ?>

	

action_register.php

	
<?php
session_start();
$errors = array(); 
$db = mysqli_connect('localhost', 'root', 'password', 'database name');
		$classname="errors";
			 if (isset($_POST['SIGNUP'])) {
		// receive all input values from the form
		$email = mysqli_real_escape_string($db, $_POST['email']);
		$name = mysqli_real_escape_string($db, $_POST['name']);
		$password = mysqli_real_escape_string($db, $_POST['password']);
			$mobile = mysqli_real_escape_string($db, $_POST['mobile']);

		// form validation: ensure that the form is correctly filled
		if (empty($name)) { array_push($errors, " name is required"); }
		if (empty($email)) { array_push($errors, " Email is required"); }
		if (empty($password)) { array_push($errors, " enter valid password"); }
		if (empty($mobile)) { array_push($errors, " mobile No. is required"); }
		
		if(strlen($mobile)==10){}	else
{array_push($errors, "enter 10 digit mobile");}		

$record_check = "SELECT * FROM user_register";
$result_check = $db -> query($record_check);
 	$email_check=$mobile_check="";
 if ($result_check->num_rows > 0) {
  // output data of each row
  while($row = $result_check->fetch_assoc()) {
$email_check=  $row['email'];
$mobile_check=  $row['mobile'];
$password_check=  $row['password'];				
  }
} 
 if ($email_check==$email){array_push($errors, "email already exists");}
if ($mobile_check==$mobile){array_push($errors, "mobile no. already exists");}
$password=md5($password); //encryption of password;
		// register user if there are no errors in the form
		if (count($errors) == 0) {
	$sql123 = "INSERT INTO user_register (	name,email,password,mobile ) 
			   VALUES('$name', '$email','$password','$mobile')";
if ($db->query($sql123) === TRUE) {
array_push($errors, "Thanks for submission<h4>");
$_SESSION['email'] = $email;
				$_SESSION['success'] = "You are now logged in";
				header('location: welcome.php');
} 
else { echo "Error: " . $sql123 ;}
}}

if (isset($_POST['login'])) {
		$email = mysqli_real_escape_string($db, $_POST['email']);
		$password = mysqli_real_escape_string($db, $_POST['password']);

if (empty($email)) {array_push($errors, "enter email");}
if (empty($password)) {array_push($errors, "enter password");}
$password=md5($password);
if (count($errors) == 0) {
$query = "SELECT * FROM user_register WHERE email='$email' AND password='$password'";
$results = mysqli_query($db, $query);

if (mysqli_num_rows($results) == 1) {
				$_SESSION['email'] = $email;
				$_SESSION['success'] = "You are now logged in";
				header('location: welcome.php');
			}else {array_push($errors, "Wrong username/password combination");}
			}}
			//log out
	if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['email']);
header("location: welcome.php");
}
?>
<?php  if (count($errors) > 0) : ?>
		<?php foreach ($errors as $error) : ?>
			<h5 class="errors" style="color: red;">	<?php echo $error ?></h5>
		<?php endforeach ?>
<?php  endif ?>
	

download Source code


Warning: include(../includecomment.php): Failed to open stream: No such file or directory in /home/u658851932/domains/plcblog.in/public_html/php/php sign and signup page template.php on line 367

Warning: include(): Failed opening '../includecomment.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u658851932/domains/plcblog.in/public_html/php/php sign and signup page template.php on line 367
Martin
October 19, 2026, 8:18 am

Where to watch porn by exploring trusted adult platforms <a href="https://darkwebmarketslink.com">buy valium online</a>.
Discover reliable porn hubs for a private experience.

Leigh
October 18, 2026, 3:15 pm

I'm not sure why but this site is loading very slow for me.
Is anyone else having this problem or is it a problem on my end?
I'll check back later and see if the problem still exists.



my web blog; <a href="https://swissautomatic.shop">dive watch design details</a>

Catalina
August 1, 2026, 6:32 pm

Π’Ρ‹Π±ΠΎΡ€ биологичСски Π°ΠΊΡ‚ΠΈΠ²Π½Ρ‹Ρ… Π΄ΠΎΠ±Π°Π²ΠΎΠΊ для поддСрТания Π·Π΄ΠΎΡ€ΠΎΠ²ΡŒΡ Π‘Π°ΠΉΡ‚.

Betsey
July 6, 2026, 11:03 pm

Как Π²Ρ‹Π±Ρ€Π°Ρ‚ΡŒ БАДы для поддСрТания
Π·Π΄ΠΎΡ€ΠΎΠ²ΡŒΡ здСсь.

Fermin
June 1, 2026, 12:14 pm

Π˜Π½Π³Ρ€Π΅Π΄ΠΈΠ΅Π½Ρ‚Ρ‹ Libidex
Π˜Π½Π³Ρ€Π΅Π΄ΠΈΠ΅Π½Ρ‚Ρ‹, входящиС Π² состав Libidex, ΠΏΡ€Π΅Π΄ΡΡ‚Π°Π²Π»ΡΡŽΡ‚ собой Ρ‚Ρ‰Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ ΠΎΡ‚ΠΎΠ±Ρ€Π°Π½Π½ΡƒΡŽ ΠΊΠΎΠΌΠ±ΠΈΠ½Π°Ρ†ΠΈΡŽ ΠΌΠΎΡ‰Π½Ρ‹Ρ… ΠΏΡ€ΠΈΡ€ΠΎΠ΄Π½Ρ‹Ρ…
ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ², Π½Π°Ρ†Π΅Π»Π΅Π½Π½Ρ‹Ρ… Π½Π° комплСксноС восстановлСниС муТской силы ΠΈ увСрСнности Π² сСбС.
ΠšΠ°ΠΆΠ΄Ρ‹ΠΉ ΠΈΠ· этих элСмСнтов, начиная ΠΎΡ‚ популярного Π°Ρ„Ρ€ΠΎΠ΄ΠΈΠ·ΠΈΠ°ΠΊΠ° ΠΉΠΎΡ…ΠΈΠΌΠ±Π΅ ΠΈ заканчивая Π°Π΄Π°ΠΏΡ‚ΠΎΠ³Π΅Π½ΠΎΠΌ ТСньшСнСм ΠΈ Π²Π°ΠΆΠ½Ρ‹ΠΌΠΈ аминокислотами, ΠΈΠ³Ρ€Π°Π΅Ρ‚ свою
Ρ€ΠΎΠ»ΡŒ Π² ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½ΠΈΠΈ кровообращСния, стимуляции Π²Ρ‹Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ тСстостСрона ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠ°Π½ΠΈΠΈ Π·Π΄ΠΎΡ€ΠΎΠ²ΡŒΡ Ρ€Π΅ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚ΠΈΠ²Π½ΠΎΠΉ систСмы Π²
Ρ†Π΅Π»ΠΎΠΌ. ВзаимодСйствиС этих ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ² Π³Π°Ρ€Π°Π½Ρ‚ΠΈΡ€ΡƒΠ΅Ρ‚ Π½Π΅ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ
краткосрочныС ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½ΠΈΡ, Π½ΠΎ ΠΈ стойкоС
ΡƒΠ²Π΅Π»ΠΈΡ‡Π΅Π½ΠΈΠ΅ ΠΏΠΎΡ‚Π΅Π½Ρ†ΠΈΠΈ ΠΈ ΡΠ΅ΠΊΡΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ ТСлания.
ЛибидСкс Π² УзбСксистанС.

libidex ΠΎΡ‚ простатита
May 30, 2026, 6:50 pm

Π˜Π½Π³Ρ€Π΅Π΄ΠΈΠ΅Π½Ρ‚Ρ‹ Libidex
Π˜Π½Π³Ρ€Π΅Π΄ΠΈΠ΅Π½Ρ‚Ρ‹, входящиС Π² состав Libidex, ΠΏΡ€Π΅Π΄ΡΡ‚Π°Π²Π»ΡΡŽΡ‚ собой Ρ‚Ρ‰Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ
ΠΏΠΎΠ΄ΠΎΠ±Ρ€Π°Π½Π½ΡƒΡŽ ΠΊΠΎΠΌΠ±ΠΈΠ½Π°Ρ†ΠΈΡŽ эффСктивных ΠΏΡ€ΠΈΡ€ΠΎΠ΄Π½Ρ‹Ρ… ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ΠΎΠ², Π½Π°ΠΏΡ€Π°Π²Π»Π΅Π½Π½Ρ‹Ρ… Π½Π° ΠΏΠΎΠ»Π½ΠΎΠ΅
восстановлСниС муТской энСргии ΠΈ увСрСнности Π² сСбС.
ΠšΠ°ΠΆΠ΄Ρ‹ΠΉ элСмСнт, начиная с распространСнного Π°Ρ„Ρ€ΠΎΠ΄ΠΈΠ·ΠΈΠ°ΠΊΠ° ΠΉΠΎΡ…ΠΈΠΌΠ±Π΅ ΠΈ заканчивая Π°Π΄Π°ΠΏΡ‚ΠΎΠ³Π΅Π½Π½Ρ‹ΠΌ ТСньшСнСм,
Π° Ρ‚Π°ΠΊΠΆΠ΅ ваТнСйшими аминокислотами, ΠΈΠ³Ρ€Π°Π΅Ρ‚ свою Ρ€ΠΎΠ»ΡŒ Π² ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½ΠΈΠΈ
кровообращСния, стимуляции Π²Ρ‹Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ тСстостСрона ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠ°Π½ΠΈΠΈ Π½Π°Π΄Π»Π΅ΠΆΠ°Ρ‰Π΅Π³ΠΎ
функционирования Ρ€Π΅ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚ΠΈΠ²Π½ΠΎΠΉ систСмы.
БинСргСтичСскоС взаимодСйствиС
этих ΠΈΠ½Π³Ρ€Π΅Π΄ΠΈΠ΅Π½Ρ‚ΠΎΠ² способствуСт Π½Π΅ Ρ‚ΠΎΠ»ΡŒΠΊΠΎ
краткосрочному ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½ΠΈΡŽ, Π½ΠΎ ΠΈ
устойчивому ΠΏΠΎΠ²Ρ‹ΡˆΠ΅Π½ΠΈΡŽ ΠΏΠΎΡ‚Π΅Π½Ρ†ΠΈΠΈ ΠΈ ΡΠ΅ΠΊΡΡƒΠ°Π»ΡŒΠ½ΠΎΠ³ΠΎ
ТСлания. libidex ΠΎΡ‚ простатита. http://xiamenyoga.com/comment/html/?133757.html

Keenan
May 29, 2026, 11:23 am

Guardium
ΠšΠ°ΠΏΡΡƒΠ»Ρ‹ Guardium Ρ€Π°Π·Ρ€Π°Π±Π°Ρ‚Ρ‹Π²Π°Π»ΠΈΡΡŒ с ΠΏΡ€ΠΈΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ΠΌ ΠΏΠ΅Ρ€Π΅Π΄ΠΎΠ²Ρ‹Ρ… Π±ΠΈΠΎΡ‚Π΅Ρ…Π½ΠΎΠ»ΠΎΠ³ΠΈΠΉ.
Π˜Ρ… состав прСдставляСт собой ΡΠΈΠ»ΡŒΠ½ΡƒΡŽ
ΠΊΠΎΠΌΠ±ΠΈΠ½Π°Ρ†ΠΈΡŽ Ρ€Π°ΡΡ‚ΠΈΡ‚Π΅Π»ΡŒΠ½Ρ‹Ρ… экстрактов, Π²ΠΈΡ‚Π°ΠΌΠΈΠ½ΠΎΠ² ΠΈ Π°ΠΊΡ‚ΠΈΠ²Π½Ρ‹Ρ… Π±ΠΈΠΎΡ„Π»Π°Π²ΠΎΠ½ΠΎΠΈΠ΄ΠΎΠ²,
ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½Π½ΡƒΡŽ для ΠΏΠΎΠ»Π½ΠΎΠ³ΠΎ уничтоТСния ΠΏΠ°Ρ€Π°Π·ΠΈΡ‚ΠΎΠ² Π½Π° всСх этапах ΠΈΡ… ΠΆΠΈΠ·Π½Π΅Π½Π½ΠΎΠ³ΠΎ Ρ†ΠΈΠΊΠ»Π° β€” начиная с яиц ΠΈ заканчивая взрослыми особями.guardium
инструкция


Warning: include_once(../../googleaaaaaaaaaososoakl/include_cookies.php): Failed to open stream: No such file or directory in /home/u658851932/domains/plcblog.in/public_html/footer.php on line 163

Warning: include_once(): Failed opening '../../googleaaaaaaaaaososoakl/include_cookies.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u658851932/domains/plcblog.in/public_html/footer.php on line 163

Warning: include_once(../../googleaaaaaaaaaososoakl/include_logic.php): Failed to open stream: No such file or directory in /home/u658851932/domains/plcblog.in/public_html/footer.php on line 164

Warning: include_once(): Failed opening '../../googleaaaaaaaaaososoakl/include_logic.php' for inclusion (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u658851932/domains/plcblog.in/public_html/footer.php on line 164