DomReg (Bulk) oddities - duplicate returns on searches...

Started by tallship, October 04, 2013, 12:18:24 AM

tallship

Okay I suppose I can continue to work with HostBill half-broken... Ugliness aside, this problem still yields a functional domreg capability.

Some background info. When someone performs a check on domain names in the bulk register form from another website, I get the following sort of return, which includes the strings queried, showing them as available (or not), but then those same domain names again further down in the results showing them as unavailable.




I don't get this sort of behavior when someone does the search from within the client portal itself.

The code I'm using is as follows:


<html><body>
<h1>Domain Registration Services</h1>
<p></p>
<p></p>

<form method="post" action="https://hostbillsite.sld.tld/?cmd=checkdomain">

<p></p>
<p></p>
Enter a complete domain name you want to search availability for</p>
Make sure to enter both the "SLD" and the "TLD" portion of the domain</p>
i.e., abc.com or abc.net or mynewdomain.org</p>

<p></p>
The Domain Registration System will check for the domain you enter,</p>
as well as a .com for that SLD (for example, if you enter mydom.net), and</p>
and offer up a few clever suggestions as well.
<p></p>
To check on the availability of several domains (bulk regsitrations), simply</p>
enter one domain name per line in the form below.</p>
<p></p>

    <input type="hidden" value="checkdomain" name="action">
     <input type="hidden" value="true" name="bulk">
      <input type="hidden" value="1" name="register">
       <input type="hidden" value="3" name="domain_cat">
        <textarea  name="sld"></textarea><input type="submit"  value="Check Availability"/>

    </form>
</body></html>


A couple of other noteworthy points to mention are that, if someone enters just one domain that IS NOT a .com (a .net SLD for example), then it also returns results for searches on .com and offers a few suggestions (I have it configured to offer suggestions so that is correct).

But if they do a search on two or more SLDs that ARE NOT under the .com TLD, then it doesn't return and results or suggestions for SLDs under the .com TLD. Still, as ugly or kludgey as this appears, it's not a show stopper, it just appears really stupid to the user.

Like I said above, however, I'm not having any of this weird behavior if someone does domain searches directly from within the HostBill portal, only when they do it from the form submission at a remote site, which redirects them to the HostBill portal for the returns.

Finally, I removed the tables that generated checkboxes from the form - they didn't work. you would get an error once redirected to the portal following the search if someone entered in something like "mykewldomain" and checked the .com box. If they entered in "mykewldomain.com" without checking the .com box everything would be fine (The search results and suggestions would be correctly returned following the redirect).

Here's what the table for that code for the form looked like that didn't work right, so was removed:


<table border="0" width="100%">
          <tr>
              <td valign="top">Domain: <textarea  name="sld"></textarea>  <input type="submit"  value="Check Availability"/></td>
              <td valign="top"><span style="float:left;width:70px"><input type="checkbox" value=".com}" name="tld[]"/> .com}</span><span style="float:left;width:70px"><input type="checkbox" value=".net}" name="tld[]"/> .net}</span><span style="float:left;width:70px"><input type="checkbox" value=".org}" name="tld[]"/> .org}</span><span style="float:left;width:70px"><input type="checkbox" value=".me}" name="tld[]"/> .me}</span><span style="float:left;width:70px"><input type="checkbox" value=".mobi}" name="tld[]"/> .mobi}</span><span style="float:left;width:70px"><input type="checkbox" value=".us}" name="tld[]"/> .us}</span><span style="float:left;width:70px"><input type="checkbox" value=".co}" name="tld[]"/> .co}</span><span style="float:left;width:70px"><input type="checkbox" value=".biz}" name="tld[]"/> .biz}</span><span style="float:left;width:70px"><input type="checkbox" value=".co.uk}" name="tld[]"/> .co.uk}</span><span style="clear:both"></span></td>
          </tr>
      </table>


Of course, this portion of the code below was left in (as you can see from the first code snippet) so the text box is actually presented to the user:


<textarea  name="sld"></textarea>  <input type="submit"  value="Check Availability"/>


Any ideas as to why or how I might fix this or make it work better?

BTW, the code demonstrated above is based on what was generated on the fly by HostBill's "Integrator" module. if that helps.

Thanks in advance for any pointers or assistance on this weird behavioral thang!  8)
Bradley D. Thornton - Manager Network Services, NorthTech Computer   TEL: +1.310.388.9469 (US) | +44.203.318.2755 (UK) | +61.390.088.072 (AU) | +41.43.508.05.10 (CH)
Registered Linux User #190795 - "Ask Bill why the string in [MS-DOS] function 9 is terminated by a dollar sign. Ask him, because he can't answer. Only I know that." - Dr. Gary Kildall.