Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

· Chapter 10, Part 1: URLs, Links, & GET values 1. Create two files named: MyFir

ID: 3551604 • Letter: #

Question

· Chapter 10, Part 1: URLs, Links, & GET values

1.    Create two files named: MyFirstPage.php and MySecondPage.phpin your text editor.

2.    In your First Page, using the following HTML link code as a starting point: <a href="MySecondPage.php?id=2">My Second Page</a><br/><br/>   create two variables $link and $pageid and insert php code into the HTML link code as you learned in Video 1. Then, in your Second Page, create a variable that displays the superglobal GET for the query parameter id (and label it) -- you learned about this in Video 2.

3.    Continuing in your Second Page, create a string of your choice using at least three of the Reserved Characters you learned about in Video 3. Example: !, #, $, %, &, ', *, +, @ Then displaythe string and both the url and raw endcoding to see what differences there are between the two.

4.    Finally, also on your Second Page, use the fictional URL ($ficlink) /search/ to 'search' the $film Star Wars for the $line May the Force Be with You! Displaythe proper encoding for the whole link.

5.    Here is a sample of what your output should look like. (Don't forget to click on the link to view the Second Page!!)

.

My Second Page




Explanation / Answer

Hi,

both your php files are completed at the link below:


MyFirstPage.php: http://pastebin.com/LJyQuJT9


MySecondPage.php: http://pastebin.com/r98rUprs


Kindly review and rate.


Thanks