Search
 
SCRIPT & CODE EXAMPLE
 

PHP

registration form in php and mysql source code

<!DOCTYPE html>
<html>
<head>
	<title>SIGN UP</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
     <form action="signup-check.php" method="post">
     	<h2>SIGN UP</h2>
     	<?php if (isset($_GET['error'])) { ?>
     		<p class="error"><?php echo $_GET['error']; ?></p>
     	<?php } ?>

          <?php if (isset($_GET['success'])) { ?>
               <p class="success"><?php echo $_GET['success']; ?></p>
          <?php } ?>

          <label>Name</label>
          <?php if (isset($_GET['name'])) { ?>
               <input type="text" 
                      name="name" 
                      placeholder="Name"
                      value="<?php echo $_GET['name']; ?>"><br>
          <?php }else{ ?>
               <input type="text" 
                      name="name" 
                      placeholder="Name"><br>
          <?php }?>

          <label>User Name</label>
          <?php if (isset($_GET['uname'])) { ?>
               <input type="text" 
                      name="uname" 
                      placeholder="User Name"
                      value="<?php echo $_GET['uname']; ?>"><br>
          <?php }else{ ?>
               <input type="text" 
                      name="uname" 
                      placeholder="User Name"><br>
          <?php }?>


     	<label>Password</label>
     	<input type="password" 
                 name="password" 
                 placeholder="Password"><br>

          <label>Confirm Password</label>
          <input type="password" 
                 name="re_password" 
                 placeholder="Re_Password"><br>

     	<button type="submit">Sign Up</button>
     </form>
</body>
</html>
Comment

login and registration form using php and mysqul

CREATE TABLE `register` (
  `ID` int(10) NOT NULL,
  `First_Name` varchar(100) NOT NULL,
  `Last_Name` varchar(100) NOT NULL,
  `Email` varchar(100) NOT NULL,
  `Password` int(100) NOT NULL,
  `File` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
Comment

registration form in php and mysql source code

CREATE DATABASE registration_form;

CREATE TABLE `users` (
  `id` int(11) NOT NULL,
  `user_name` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  `name` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


INSERT INTO `users` (`id`, `user_name`, `password`, `name`) VALUES
(1, 'admin', '202cb962ac59075b964b07152d234b70', 'admin'),
(2, 'user', '202cb962ac59075b964b07152d234b70', 'user');
Comment

registration form in php and mysql source code

<!DOCTYPE html>
<html>
<head>
	<title>SIGN UP</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
     <form action="signup-check.php" method="post">
     	<h2>SIGN UP</h2>
     	<?php if (isset($_GET['error'])) { ?>
     		<p class="error"><?php echo $_GET['error']; ?></p>
     	<?php } ?>

          <?php if (isset($_GET['success'])) { ?>
               <p class="success"><?php echo $_GET['success']; ?></p>
          <?php } ?>

          <label>Name</label>
          <?php if (isset($_GET['name'])) { ?>
               <input type="text" 
                      name="name" 
                      placeholder="Name"
                      value="<?php echo $_GET['name']; ?>"><br>
          <?php }else{ ?>
               <input type="text" 
                      name="name" 
                      placeholder="Name"><br>
          <?php }?>

          <label>User Name</label>
          <?php if (isset($_GET['uname'])) { ?>
               <input type="text" 
                      name="uname" 
                      placeholder="User Name"
                      value="<?php echo $_GET['uname']; ?>"><br>
          <?php }else{ ?>
               <input type="text" 
                      name="uname" 
                      placeholder="User Name"><br>
          <?php }?>


     	<label>Password</label>
     	<input type="password" 
                 name="password" 
                 placeholder="Password"><br>
>
          <label>Confirm Password</label>
          <input type="password" 
                 name="re_password" 
                 placeholder="Re_Password"><br>

     	<button type="submit">Sign Up</button>
     </form>
</body>
</html
Comment

PREVIOUS NEXT
Code Example
Php :: add attribute validation lang laravel 
Php :: Yii2 GridView Filtering on Relational Column 
Php :: php session set error 
Php :: phpmyadmin account locked 
Php :: opencart set page title config php 
Php :: Date and time Asia karachi php 
Php :: symfony postgresql 
Php :: Deactivate click events on product card image, title and contents 
Php :: php array to query string using array map 
Php :: google calendar api push notifications php 
Php :: laravel save or post 
Php :: customize response body with filters laravel 
Php :: Laravel model - CRUD only with records where one column = certain value 
Php :: PHP SimpleXML Parser 
Php :: PHP strnatcmp — String comparisons using a "natural order" algorithm 
Php :: what-is-diference-wp-get-attachment-url-wp-get-attachment-src-get-post-thumb 
Php :: laravel eloquent pass to next element 
Php :: seed specific seeder laravel 
Php :: codeigniter input required function in php 
Php :: how to filter the all special characters in cakephp from an array 
Php :: Handling Email Verification Error for APIs 
Php :: if($a $b){ echo "A B"; }else if($a < $b){ echo "A < B"; }else if($a != ""){ if($a == $b){ echo "A = B"; } } 
Php :: attributte object variable php 
Php :: Maximum precision of float in PHP 
Php :: refresh_ttl 
Php :: one to one relationship laravel 
Php :: make controller laravel history open link 
Php :: php if form fails keep data 
Php :: connexion sql php/html 
Php :: codeigniter remote queries very slow 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =