Well, I find a solution to my problem but I think is missing here. To make things shorter I build links dynamically inside 2 WHILE loops. I make the url like this
deliver.php?cods=<number>
Because i had some records in the DataBase they are generated more than one link and the variable cods is used more than once but with different values. Because i don't call the page from a form i don't use $PHP_SELF. The url goes ok, but when I try to use the variable I realise that the variable is empty or maybe not initiated. I solve the problem using $HTTP_REFERER and extracting from there the cods value. This doesn't happen if i use a simple page with a single link. The question is: php can't initiate the variable when you don't use $PHP_SELF and a form? Could the problem be caused by using the same variable? I haven't tried hidden values(yet). Monday i will post the solution that i use it to solve the problem