danyb Posted January 18, 2010 Share Posted January 18, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
liangkiller Posted January 26, 2010 Share Posted January 26, 2010 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> ------------------------------------------------------------------------------------------------------------------------------- 0 Quote Link to comment Share on other sites More sharing options...
liangkiller Posted January 26, 2010 Share Posted January 26, 2010 And , I test your code, that can work 0 Quote Link to comment Share on other sites More sharing options...
c0le Posted March 29, 2010 Share Posted March 29, 2010 This worked great for me, exactly what i was looking for. Thank you 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.