[snip] Same result, doesn't work. The problem is the value of $pagetag is nothing at all. Printing out results in a blank.... why this is I don't understand. [/snip] How is $pagetag supplied? Try these... echo $_POST['pagetag']; echo $_GET['pagetag'];