vincent_g Posted March 5, 2012 Share Posted March 5, 2012 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.