1. What is the main difference between sending HTML form data using the HTTP GET method and the HTTP POST method? How is the data accessed within a PHP script?
2. For each of the following PHP code snippets, write down what you’d expect to be displayed on the web page generated by PHP. Give a brief explanation of your answer in each case.
(a) $name='Fred';
echo 'Hello $name.';
(b) $name='Fred';
echo "Hello $name.";
(c) $name='Fred';
echo "Hello $nane.";
(d) $name='Fred';
echo 'Hello', $name;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here