View Full Version : Domain search checkbox outside ...

01-18-10, 07:12 PM

I've created a simple domain form outside (domain1.com) the WHMCS pages with this code:

<form action="http://www.domain2.com/domainchecker.php" method="post">
<div align="center" class="contentbox checker" style="direction:ltr;"> www.
<input type="text" size="40" value="" name="domain"/>
<input type="submit" value="search" id="Submit"/>
<table cellspacing="0" cellpadding="10" border="0" align="center">
<td align="left"><input type="checkbox" value=".com" name="tlds[]"/>.com</td>
<td align="left"><input type="checkbox" value=".org" name="tlds[]"/>.org</td>

when I search something, I'm redirected to the domainchecker page, the domain name is passed, the TLDs are not passed, and the search didn't work.

any way to make this work...?

It work great with a dropdown menu but not a checkbox.



01-26-10, 06:08 AM
This is what I test is ok:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh" dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form method="post" action="http://domain/domainchecker.php">
<div class="contentbox" align="center"> www.
<input type="text" name="domain" value="" size="40">
<br />
<br />
<table border="0" align="center" cellpadding="10" cellspacing="0">
<tr> <td align="left"><input type="checkbox" name="tlds[]" value=".com">
<td align="left"><input type="checkbox" name="tlds[]" value=".net">
<td align="left"><input type="checkbox" name="tlds[]" value=".org">
<td align="left"><input type="checkbox" name="tlds[]" value=".info">
<td align="left"><input type="checkbox" name="tlds[]" value=".us">
<tr> <td align="left"><input type="checkbox" name="tlds[]" value=".name">
<br />
<input type="submit" id="Submit" value="Lookup">

01-26-10, 06:10 AM
And , I test your code, that can work

03-29-10, 09:29 PM
This worked great for me, exactly what i was looking for. Thank you