Make A Name Spinner Easy In PHP – Free Code

Are you a domaining webmaster?  How about adding a new feature to your site? I am posting free code to make a versatile name spinner. I built this simple to use name spinner for you to basically copy & paste the code into 2 new PHP files.

We”ll Let’s get started! Here’s a screenshot of the demo name spinner:

spinner

So as you can see, you have some fields & these fields are magically mixed up together to make lists of domains. While the domains may or not be registered is a different story. You will need to gauge your searches with what is available out there. Enough of the small talk – let’s build that name spinner ASAP.

Let’s start off with baby steps. First off, log into your favorite FTP program, CPanel.. whatever you feel is easiest. Or basically create 2 new files. It would be best if you add these to a path similar to: http://www.expron.com/namespinner/ – like the working link above.

Of course, replace “expron” with your hosted domain you are creating this “script” in.

Place in the folder 2 new files named:

  1. index.html
  2. parseform.php

Your host has to allow PHP “scripts” to run on the server. This code is basic & should not be a problem.

Ok, so by now you should have a directory & 2 empty files. The directory or folder is not required but it helps for seo & memory purposes. If you make: mydomain.com/namespinner/ It is better than tossing 2 files at the root of your domain.

Down to business.. Simply copy this code into each file.

Index.html

<title>Custom Domain List Generator – Generate Lists Of Available Domains!</title><body><form method=”POST” action=”parseform.php”>
<table width=”666″ border=”0″ align=”center” cellpadding=”2″ cellspacing=”0″>
<tr>
<td width=”15″>&nbsp;</td>
<td colspan=”2″><div align=”center”><span>Domain List Creator </span></div></td>
<td width=”18″>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td width=”318″>&nbsp;</td>
<td width=”315″>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><span>Enter Your Keywords Here </span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><span>Example: Car, Cars, Automobile </span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”keyword1″ type=”text” id=”keyword1″>
<span>Keyword 1 </span></td>
<td><input name=”keyword2″ type=”text” id=”keyword2″>
<span>Keyword 2 </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”keyword3″ type=”text” id=”keyword3″>
<span>Keyword 3 </span></td>
<td><input name=”keyword4″ type=”text” id=”keyword4″>
<span>Keyword 4 </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;      </td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><span>Enter Your Variations Here </span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><span>Example: Red, Blue, Yellow, Green</span></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”variation1″ type=”text” id=”variation1″>
Variable 1 </td>
<td><input name=”variation2″ type=”text” id=”variation2″>
<span>Variable 2 </span> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>      <input name=”variation3″ type=”text” id=”variation3″>
<span>Variable 3 </span></td>
<td>      <input name=”variation4″ type=”text” id=”variation4″>
<span>Variable 4 </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”variation5″ type=”text” id=”variation5″>
<span>Variable 5 </span></td>
<td><input name=”variation6″ type=”text” id=”variation6″>
<span>Variable 6 </span></td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>Domain Extension </td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name=”tld” type=”text” id=”tld” value=”.com” size=”5″></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type=”submit” name=”Submit” value=”Submit”></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</form>
</body>

Insert this this into: parseform.php

<?php
$keyword1 = $_REQUEST["keyword1"];
$keyword2 = $_REQUEST["keyword2"];
$keyword3 = $_REQUEST["keyword3"];
$keyword4 = $_REQUEST["keyword4"];
$variation1 = $_REQUEST["variation1"];
$variation2 = $_REQUEST["variation2"];
$variation3 = $_REQUEST["variation3"];
$variation4 = $_REQUEST["variation4"];
$variation5 = $_REQUEST["variation5"];
$variation6 = $_REQUEST["variation6"];
$tld = $_REQUEST["tld"];

$keywords = array($variation1,$variation2, $variation3, $variation4, $variation5, $variation6);
$variations = array($keyword1,$keyword2, $keyword3, $keyword4);

$output .= ‘<pre>’;
foreach ($keywords as $a)
foreach ($variations as $b)
$output .= $a . $b . $tld . “\n”;
echo $output . ‘</pre>’;

?>

And save the files. It’s as simple as that. Now you have a name spinner that you can customize for your website visitors to enjoy. Not to mention yourself as well.

Dreamweaver adds a bunch of: &nbsp; tags which basically hold a small white space in the design.

Feel free to modify the code as you wish!

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

1 Comment »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>