$val = ""; $val2 = "123"; $url = "http://localhost/get.pl?&val1=".$val."&val2=".$val2; giving http://localhost/get.pl?&val1=&val2=123