PDA

View Full Version : Domain search checkbox outside ...



danyb
01-18-10, 07:12 PM
Hi,

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">
<tbody><tr>
<td align="left"><input type="checkbox" value=".com" name="tlds[]"/>.com</td>
<td align="left"><input type="checkbox" value=".org" name="tlds[]"/>.org</td>
</tr></tbody>
</table>
</div>
</form>

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.

Regards,

Danyb

liangkiller
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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
</head>
<body>
<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">
.com</td>
<td align="left"><input type="checkbox" name="tlds[]" value=".net">
.net</td>
<td align="left"><input type="checkbox" name="tlds[]" value=".org">
.org</td>
<td align="left"><input type="checkbox" name="tlds[]" value=".info">
.info</td>
<td align="left"><input type="checkbox" name="tlds[]" value=".us">
.us</td>
</tr>
<tr> <td align="left"><input type="checkbox" name="tlds[]" value=".name">
.name</td>
</tr>
</table>
<br />
<input type="submit" id="Submit" value="Lookup">
</div>
</form>
</body>
</html>
-------------------------------------------------------------------------------------------------------------------------------

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

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