Originally posted by ibo
i mean everytime i use name1 variable inside my code should i have to write $GET['name1'] instead of writing simply $name1.
Of course you don't always have to use $GET when you assign variables INSIDE your script.
Only use $_GET when you're retrieving variables from an URL.
When you open an url with variables and values (http://www.something.com/index.php?var=val) you're sending the variable with the GET method, then PHP creates an array with all the GET variables.
It's just like when you post a form, the browser then sends the variables and values to the script with the POST method. You can also use the GET method but I don't recommend it.
Try this...
extract($_GET);
echo 'The name of the variable = ' . $name1;