First of all, TS, please, please read the documentation - www.php.net/docs.php - from the start. This is perhaps the simplest thing possible in PHP, and in fact, you just described the solution exactly yourself. To grudgingly answer your questions, if you have a URL like any.php?main=value1&head=value2, then in any.php, the value of $main will be "value1" and the value of $head will be "value2." Yes, automatically. That's it.