Send data to database after redirect (and popping out of iframe)

I ended up appending a string to the iframe break:

top.location = self.location.href + "&noframe=1";

Then checking for it.

if(isset($_GET['noframe']) && $_GET['noframe'] == 1)

Then I insert into the database.

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduedusedueduedusedusedueduedu