Cool script i love it. I was wondering how i could get the script to generate alternatives (random or not,) that arent registered. So say you go to register yahoo.com. Obviously its not available, so the scripts offer you the .org .net etc... but id like this as well:
"try these alternatives as well
123yahoo.com
ya-hoo.com
myyahoo.com
yahoo321.net "
etc. How could i go about doing this? Thanks in advance for the help.
I will see if I can get this into the next release.
Hey also this i need too (more than the above). When it comes to the outside script example i need this. I just want it to pass the variables to another page, and then im going to use that page to email the information.
So it will take them to a registration page, with the domain they chose, and extension already filled out, and then they fill out their personal information, and then they click mail and it will mail. I can code the mailing part, but the passing of the variables is a tough one for me. I tried just changing the outside script to purchase.php in the config, file, then trying to exho out the $domain but it just comes up with a parse error...
This is fairly easy if you just use the built in $CONF['external_script_url'] variable in the config and the extra support added in version 1.41 (make sure you are using the latest).
Just set your $CONF['external_script_url'] to the url of your payment script, such as http://www.yourdomain.com/purchase.php .
Then in purchase.php, the variables would be available as:
Code:
$_POST['domain']
$_POST['ext']
So example code would be:
Code:
echo $_POST['domain'] . "." . $_POST['ext'];[code]
With this you could hide the domain into some hidden form objects and have the whole thing look something like:
[code]
<form name="domain_email" action="either mailto:youremail@youremail.com or other_script_for_sending.php" method="post">
Name: <input type="text" name="Name"><br>
Address: <input type="text" name="Address"><br>
Whatever else: <input type="text" name="Whatever_Else"><br>
<input type="hidden" name="domain" value="<? echo $_POST['domain'] . "." . $_POST['ext']; ?>">
<input type="submit" value="Submit Domain Registration">
Now if you pass this onto another script to mail to you, you will be able to access all of these variables via the same $_POST variable, with $_POST['domain'] including the full domain in the above html/php.
I hope this helps you out. As of v1.41 I included an external_example_script.php to give examples of manipulating and using domains that have been passed on.