Jump to content

Adding a domain drop down list to your page


Recommended Posts

If you need a drop down list on a page here's how

 

Create a file and save it to your Feeds folder or if you are using older version the widgets folder using the following code. You can name it domainddlb.php

 

<?php

 

require("../dbconnect.php");

require("../includes/functions.php");

require("../includes/domainfunctions.php");

 

$code="";

 

 

$currency = ($currency) ? getCurrency('',$currency) : getCurrency();

 

 

$freeamt = formatCurrency(0);

 

$tldslist = getTLDList();

foreach ($tldslist AS $tld) {

$tldpricing = getTLDPriceList($tld,true);

$code .= '<option>'.$tld.'</option><br>';

}

 

echo "document.write('".$code."');";

 

 

?>

 

Now on the page you wish to have the drop down add the following.

 

<select>

<script language="javascript" src="widgets/domainddlb.php"></script>

</select>

 

Of course change the widgets/ to feeds/ if you are using new version as they dropped the widgets folder in new version.

 

The src= must match your install WHMCS location.

 

Also

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