üst satırına <?php $random = rand(0,99999) ?>
yazın sonra form action kısmına sunu
action="<?php echo $random.'.php' ?>" yazarsan çalışır