Update signup.php
For the LRR website, we don't need to display both the sign-in and sign-up forms on one page. The best thing that we can do to have a clean and neat LRR website UI/UX we should only display the logo and sign in form. Then we are also going to put a signup link on the sign-in page that will lead to the signup form and on the signup form the top left corner lrr logo will lead us back to the sign-in form. On the sign-up form I have removed the portal for inputting the passport and added an if statement for inputting student number on the same form.SIMPLICITY_link
							parent
							
								
									af0f586396
								
							
						
					
					
						commit
						8c42ebe4ee
					
				
							
								
								
									
										19
									
								
								signup.php
								
								
								
								
							
							
						
						
									
										19
									
								
								signup.php
								
								
								
								
							| 
						 | 
					@ -24,6 +24,9 @@ include 'Header.php';
 | 
				
			||||||
    Full Name
 | 
					    Full Name
 | 
				
			||||||
    <input type="text" name="fullname" placeholder="Your Full Name" class="form-control" value="<?php echo $_SESSION['user_fullname']; ?>"  required="required"/>
 | 
					    <input type="text" name="fullname" placeholder="Your Full Name" class="form-control" value="<?php echo $_SESSION['user_fullname']; ?>"  required="required"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Student ID
 | 
				
			||||||
 | 
					    <input type="text" name="user_student_id" placeholder="Entre your Student ID" class="form-control" value="<?php echo $_SESSION['user_student_id']; ?>" required="required">
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    Email
 | 
					    Email
 | 
				
			||||||
    <input type="text" name="email" placeholder="Email" class="form-control" value="<?php echo $_SESSION['user_email']; ?>"  required="required" />
 | 
					    <input type="text" name="email" placeholder="Email" class="form-control" value="<?php echo $_SESSION['user_email']; ?>"  required="required" />
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
| 
						 | 
					@ -33,7 +36,7 @@ include 'Header.php';
 | 
				
			||||||
    Confirm Password
 | 
					    Confirm Password
 | 
				
			||||||
    <input type="password" class="form-control"  name="confirmpassword" placeholder="Confirm password" required="required" />
 | 
					    <input type="password" class="form-control"  name="confirmpassword" placeholder="Confirm password" required="required" />
 | 
				
			||||||
    <br>
 | 
					    <br>
 | 
				
			||||||
    <input type="submit" class="btn btn-primary" value="Sign up">
 | 
					    <input type="submit" class="btn-primary" value="Sign up">
 | 
				
			||||||
<?php 
 | 
					<?php 
 | 
				
			||||||
error_reporting(E_ALL);
 | 
					error_reporting(E_ALL);
 | 
				
			||||||
if(isset($_SESSION['info_signup2'])) {
 | 
					if(isset($_SESSION['info_signup2'])) {
 | 
				
			||||||
| 
						 | 
					@ -48,3 +51,17 @@ if(isset($_SESSION['info_signup2'])) {
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					<style>
 | 
				
			||||||
 | 
					     /*------------------------------------------------------------------
 | 
				
			||||||
 | 
					[ Login Button ]*/
 | 
				
			||||||
 | 
					.btn-primary {
 | 
				
			||||||
 | 
					            color: white;
 | 
				
			||||||
 | 
					            border-radius: 5px;
 | 
				
			||||||
 | 
					            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
 | 
				
			||||||
 | 
					            background: rgb(75, 184, 240);
 | 
				
			||||||
 | 
					            padding:5px 195px;
 | 
				
			||||||
 | 
					            font-family: Poppins-Regular;
 | 
				
			||||||
 | 
					            font-size: 23px;
 | 
				
			||||||
 | 
					            line-height: 1.5;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					</style>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue