1 00:00:00,630 --> 00:00:01,290 Welcome back. 2 00:00:02,130 --> 00:00:06,630 Now, what we need to do is that we need to work on the login and registration pages. 3 00:00:07,140 --> 00:00:10,860 So what I'm going to do is that I'm going to start with the registration page. 4 00:00:11,250 --> 00:00:13,500 So here we have the register that each email. 5 00:00:13,860 --> 00:00:21,420 The first step is that we need to rename this register from registration email to register date. 6 00:00:21,900 --> 00:00:22,890 This is the first step. 7 00:00:23,550 --> 00:00:28,680 The second step is that we need to open the register and then we need to look for the form. 8 00:00:29,010 --> 00:00:30,360 Remember, we have here. 9 00:00:31,610 --> 00:00:34,370 We have here this form. 10 00:00:34,370 --> 00:00:36,530 Let me look for it here. 11 00:00:36,530 --> 00:00:37,070 This form? 12 00:00:37,160 --> 00:00:37,640 Yes, sir. 13 00:00:38,770 --> 00:00:40,720 Let me close down this 1/1. 14 00:00:42,110 --> 00:00:43,760 Let me try to close down this. 15 00:00:45,300 --> 00:00:48,240 Because I don't want to. 16 00:00:54,550 --> 00:00:59,770 Let me close down this first here and then let me close down this second. 17 00:00:59,770 --> 00:01:01,780 And now we have the register. 18 00:01:01,960 --> 00:01:03,550 So the register here, we have a form. 19 00:01:03,550 --> 00:01:04,870 As you can see, we have this form. 20 00:01:05,380 --> 00:01:13,420 So this form it has the name, the email, the password, the confirm password and the the register 21 00:01:13,420 --> 00:01:13,720 here. 22 00:01:14,110 --> 00:01:17,380 So before we do anything, let's make sure that we have the names. 23 00:01:17,380 --> 00:01:18,820 We have name for the name. 24 00:01:19,180 --> 00:01:23,590 We have name for the email for the password, for the confirmed password. 25 00:01:24,130 --> 00:01:25,740 For the register button. 26 00:01:25,750 --> 00:01:27,040 We need to say your name. 27 00:01:27,700 --> 00:01:31,060 We say name and the name is going to be register. 28 00:01:31,870 --> 00:01:32,980 Register. 29 00:01:34,120 --> 00:01:37,960 And that's it for the form itself. 30 00:01:37,960 --> 00:01:39,560 I'm going to give it action and methods. 31 00:01:39,610 --> 00:01:43,090 I'm going to say method and the method is going to be post. 32 00:01:44,050 --> 00:01:46,390 So the method is post the action. 33 00:01:47,700 --> 00:01:50,760 The action is going to be. 34 00:01:52,170 --> 00:01:57,750 And the action is going to be a resistor, not BHP, which is the same exact page. 35 00:01:58,170 --> 00:02:00,690 So I'm going to be using the same page to register the user. 36 00:02:01,290 --> 00:02:06,570 So at the top here at the top, we need to add the logic of the registration. 37 00:02:06,570 --> 00:02:10,260 So at the top I'm going to say here HP and then HP. 38 00:02:11,070 --> 00:02:16,260 And then what we want to do is that we want to get the data from the form. 39 00:02:16,560 --> 00:02:17,760 So what's what? 40 00:02:18,510 --> 00:02:20,040 Let me first go to the register. 41 00:02:20,040 --> 00:02:23,280 I'm going to say here just to explain previous. 42 00:02:25,340 --> 00:02:28,910 Mr. BHP and that explain what I'm going to do. 43 00:02:28,910 --> 00:02:35,390 So the user would type their name, email password and confirm the password and then would click on 44 00:02:35,690 --> 00:02:36,290 register. 45 00:02:36,800 --> 00:02:40,050 If everything is fine, we need to display that. 46 00:02:40,100 --> 00:02:41,750 Otherwise we need to display an error. 47 00:02:42,290 --> 00:02:43,520 So what I'm going to do is that. 48 00:02:44,500 --> 00:02:44,890 Here. 49 00:02:44,890 --> 00:02:48,330 I'm going to say if is set. 50 00:02:49,340 --> 00:02:51,500 He's set and then. 51 00:02:52,600 --> 00:03:03,550 Lost because this is we are dealing with it was request a set bust and then this button which which 52 00:03:03,790 --> 00:03:06,220 which has a name called register. 53 00:03:06,730 --> 00:03:09,460 So we need to say if it said POS register. 54 00:03:11,220 --> 00:03:15,780 We need to register the user else. 55 00:03:17,000 --> 00:03:19,590 We need to display an error or do something. 56 00:03:20,370 --> 00:03:27,970 So in case of error, I'm just going to say I'm just going to keep it empty for now. 57 00:03:27,990 --> 00:03:29,580 There is no need to display anything here. 58 00:03:30,540 --> 00:03:33,990 And it gives the user forgets to to feel. 59 00:03:34,140 --> 00:03:38,420 One of these one of these inputs. 60 00:03:38,430 --> 00:03:39,210 There's no problem. 61 00:03:39,210 --> 00:03:44,640 Because if you click if you if you try to click on register without filling one of this one of these 62 00:03:45,330 --> 00:03:47,190 inputs, it's not going to allow you anyway. 63 00:03:47,220 --> 00:03:48,720 So we don't need to worry about this. 64 00:03:50,160 --> 00:03:57,210 So here, if if register, if we pass, if we set, post, register what we want to do. 65 00:03:58,460 --> 00:04:00,750 Is that we want to get the data from before. 66 00:04:00,770 --> 00:04:03,610 So we need to say your post and their name. 67 00:04:03,920 --> 00:04:09,500 We need to give the name and store it in the in a valuable code name. 68 00:04:11,910 --> 00:04:14,910 And then we need to get to the email. 69 00:04:19,790 --> 00:04:21,050 So here's an email. 70 00:04:24,130 --> 00:04:25,900 And year, I'm going to say. 71 00:04:28,290 --> 00:04:28,950 Email. 72 00:04:33,110 --> 00:04:34,980 And then we need a passport. 73 00:04:35,300 --> 00:04:36,100 Passport? 74 00:04:38,720 --> 00:04:39,380 And here. 75 00:04:40,700 --> 00:04:44,990 Pass ward and then the. 76 00:04:46,470 --> 00:04:47,190 Password. 77 00:04:47,190 --> 00:04:50,820 And lastly, the confirm password to confirm password. 78 00:04:51,720 --> 00:04:53,700 So here I'm going to say confirm password. 79 00:04:55,150 --> 00:04:57,160 Con firm. 80 00:05:00,430 --> 00:05:01,410 Passport. 81 00:05:02,890 --> 00:05:04,600 And I'm going to store it in a valuable call. 82 00:05:05,140 --> 00:05:08,650 Confirm passport.