Well, this may not be the most elgant thing in the world but I assume that you're going to be storing your confirmation number in the database anyway so you could just query your database to make sure ...