Dann probier es doch mal mit name="r" statt name="$_COOKIES['r']". Zudem würd ich zum form noch method="post" hinzufügen.
Foren-Regeln