1. How can you document your code?

The way you can document your code is by leaving breadcrumbs. What I mean by this is when your coding for PHP or HTML and CSS, every web designer know the code is going to become beyond complex to the point where you come back a year later you have left comments to tell yourself what exactly you did and what each of the codes mean, that way you as a web designer can edit or add on to the webpages based on the documentation of the codes from the comments you left behind.

2. How does the POST method pass values from one page to the next?

Unlike the GET method which passes information through the browsers URL, the POST method will put the information in back of the webpage to another page for temporary usage. The reason for this is because when people buy things online they input their credit card information, and if your using the GET method all the information will be displayed that the user has typed in and too boot someone good in web can get the information very easily. Which is why the POST method is a better use of sending the information in the background to another page which temporarily saves the data.

3.What is a php variable?

A PHP variable is like a placeholder but not really. Think of a variable as a substitute for something in math. Instead the PHP variable lets people place a variable inside the code for example the best way to look at it is like this.

$titlePHP= 'DQs';

The variable above is showing a placeholder for the title to a webpage. When this is typed in and echoed out the title DQ will show up. Out of all confusion a variable is a place holder for information in which a user can echo out when needed.

4. How does the GET method pass values from one page to the next?

The GET method passes values from one page to the next by passing it in browsers URL, the user puts in the results they are looking for and the get method will automatically pass the values to the browsers URL. One example of this is search engines, Google does this when a user enters a search query it displays the needed information in the browsers URL.