Jump to content

Domain search checkbox outside ...


danyb

Recommended Posts

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

Link to comment
Share on other sites

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>

-------------------------------------------------------------------------------------------------------------------------------

Link to comment
Share on other sites

  • 2 months later...

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