Jump to content

Bulk Domain Search with TLD's


reaveswins

Recommended Posts

I'm trying to make it so the bulk domain search page has a box and then TLD check boxes.

 

I found this script that people say is working but I cannot get it to work.

It displays properly just doesn't actually search.

Anyone have any ideas ?

 

Your help is greatly appreciated.

 

{literal}

<script type="text/javascript">

function formatSearch(){

var tlds=Array();

/* Load words to search (SLD) into Array */

var slds=document.getElementById('mutilsld').value.spl it("\n");

j=0;

/* Load checked TLDs into Array */

for (i = 0; i < document.formBulk.tld.length; i++)

if (document.formBulk.tld.checked){

tlds[j] =document.formBulk.tld.value;

j++;

}

var txt="";

for(i=0;i<slds.length;i++){

for(j=0;j<tlds.length;j++){

txt= txt + slds + tlds[j] + "\n";

}

}

 

document.getElementById('bulkdomains').value=txt;

}

</script>

{/literal}

<form id="formBulk" name="formBulk" method="post" action="domainchecker.php?search=bulk" onsubmit="formatSearch()">

<p>

<textarea name="mutilsld" id="mutilsld" cols="45" rows="5"></textarea>

</p>

<p>

<input name="tld" type="checkbox" id="tld" value=".com" />

.com

<input name="tld" type="checkbox" id="tld" value=".net" />

.net

<input name="tld" type="checkbox" id="tld" value=".org" />

.org

</p>

<p>

<input type="hidden" name="bulkdomains" id="bulkdomains" />

<input type="submit" id="Submit" value="{$LANG.domainlookupbutton}" />

</p>

</form>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated