Okay, we'll help!
First of all, you don't need to "collect" the variables. They are already present.
The global keyword makes it usable inside functions you define.
And remember: if you want to print out $name from a form, the form tag MUST have the same name. Example:
to get the value of this:
<input type="text" name="email">
you access it using:
$email
BUT in the newer versions of PHP, $email will no longer be usable. You MUST get variables using the $_GET array. SO if you want to access the email form value, use:
$_GET['email'].
Say you want to print this value from inside a function, use this:
function printEmail() {
echo "Email has a value: ";
echo $_GET['email'];
}