1
00:00:00,250 --> 00:00:07,350
In the previous lecture, we already talked about how to return the desktop XHTML to the browser so

2
00:00:07,350 --> 00:00:14,050
you can see the Web page here, but at a minute, no matter what you are, we go to, for example,

3
00:00:14,080 --> 00:00:14,970
now, Eustache.

4
00:00:15,210 --> 00:00:22,740
But even if we go to the contact page, we still go to the same page because it's always we turn to

5
00:00:22,740 --> 00:00:24,120
send e-mail.

6
00:00:24,690 --> 00:00:27,240
So now instead of sending back.

7
00:00:28,230 --> 00:00:33,420
The same page we want to assign a different page depends on the rules that you thought we said.

8
00:00:33,840 --> 00:00:39,960
So we need a way to figure out you out at the user request.

9
00:00:40,380 --> 00:00:44,880
And then based on this, you also and the server return different e-mail page.

10
00:00:44,910 --> 00:00:52,150
So the first thing we need to do is to we want to correct these two wheels because now we have different

11
00:00:52,150 --> 00:00:54,270
rules we have in that page.

12
00:00:54,900 --> 00:00:59,780
And also we are going to create the contact page and a photo for page.

13
00:01:00,090 --> 00:01:11,340
So we copy and paste two times and then we winamp this as contact and this one we replaced is as Fofo.

14
00:01:12,120 --> 00:01:16,140
And inside the contact we just winsomeness as contact.

15
00:01:18,120 --> 00:01:23,640
Inside the paragraph we just type contact me and go to the four four page.

16
00:01:23,910 --> 00:01:30,420
We change the heading to file for and then the paragraph is the page does not exist.

17
00:01:32,400 --> 00:01:34,520
So we create all the files that we need.

18
00:01:34,530 --> 00:01:39,710
And if you go to the for a flash we want to send back the entire page.

19
00:01:39,750 --> 00:01:45,950
If you go to the forward contact we want to return the contact page.

20
00:01:46,200 --> 00:01:52,940
Other than these two page, we want to return to full full page that we cannot see any pages that we

21
00:01:52,940 --> 00:01:53,520
need to do.

22
00:01:53,520 --> 00:01:54,180
So we crash.

23
00:01:54,540 --> 00:01:56,250
So now we back to the server that they.

24
00:01:56,300 --> 00:01:56,670
Yes.

25
00:01:57,060 --> 00:02:04,230
And since they used a different we crash you out and instead of always within each file, we are going

26
00:02:04,230 --> 00:02:06,930
to create a new variable cloud.

27
00:02:07,140 --> 00:02:16,500
So we look at what is ICO to go for and then we use and this is because what we want to read is always

28
00:02:16,500 --> 00:02:18,510
begin with the rebels.

29
00:02:18,960 --> 00:02:25,950
So we need to remember both as these we need to use a switch statement to cycle through all different

30
00:02:25,950 --> 00:02:26,520
cases.

31
00:02:27,000 --> 00:02:34,310
So we type switch and then we put the request you out to evaluate the radio.

32
00:02:34,470 --> 00:02:42,410
So if the radio is able to form a flash and then we are going to append interest tomorrow to the route.

33
00:02:42,420 --> 00:02:51,810
So what press echo in that tomorrow and then we create a second case and which is contac.

34
00:02:54,390 --> 00:03:00,990
So if this is contact, they're going to return to contact XHTML and other than these two, we are going

35
00:03:00,990 --> 00:03:03,210
to append the full fall page.

36
00:03:03,840 --> 00:03:06,270
So this is full for the XHTML.

37
00:03:08,270 --> 00:03:15,020
And there is an era that we cross, it's not divided because we make a mistake that we put outside the

38
00:03:15,020 --> 00:03:22,460
server, so we has to copy this and cut this and put this under the header.

39
00:03:24,380 --> 00:03:32,750
And because that request is initialized at here now, we can take the result and put this under the

40
00:03:32,930 --> 00:03:33,440
file.

41
00:03:34,640 --> 00:03:42,950
So now if we go back to the Web page and refresh and you can see if this is a contact, it will be a

42
00:03:42,950 --> 00:03:43,700
contact.

43
00:03:43,700 --> 00:03:47,600
If this is just for a flash, it will go to the home page.

44
00:03:47,690 --> 00:03:53,360
If there is some pages that we do not know, it will go to the Final Four page.
