/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php require_once 'domain.class.php'; if($_SERVER['REQUEST_METHOD'] != 'POST') { } $ext = $_POST['tlds']; $save = $_POST['save']; $randomainer = new Randomainer(); $randomainer->maxDomain = 100; $randomainer->generateDomainName($ext); if($save == '1') // if the save option is selected, we will save the results. { $randomainer->save(); } ?>