+ Reply to Thread
Results 1 to 3 of 3

Thread: Submit to whois.php from another page

  1. Join Date
    Jun 2005
    Posts
    2

    Submit to whois.php from another page

    Is it possible to have a form on another page than the whois.php page ans submit the domain and tld directly from the form on the other page?

    I've been trying without any luck. Here is the form that I have:

    Code:
    <form name='whois_search' method='POST' action="/whois.php" style="margin-bottom: 0px;">
      <input type='hidden' name='page' value='WhoisSearch'>
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
           <tr>
            <td height="20" colspan="3" class="darkgray">Check the avilability of your domain </td>
           </tr>
           <tr>
            <td width="25%" height="20"><div align="center" class="darkgray">www.</div></td>
            <td width="35%" height="20"><input name="domain" type="text" class="grey" size="12"></td>
            <td width="40%" height="20"><div align="center">
             <select name="ext0" class="grey">
               <option>.com</option>
               <option>.net</option>
               <option>.org</option>
               <option>.biz</option>
             </select>
            </div></td>
           </tr>
           <tr>
            <td colspan="3">
             <div align="right">
              <input name="Submit2" id='Submit' type="submit" class="formfield" value="search">
            </div></td>
           </tr>
         </table>

  2. Join Date
    Aug 2004
    Posts
    781

    Submit to whois.php from another page

    Yes, it is possible. It looks like your html is incorrect.

    Try this instead:
    Code:
    <form name='whois_search' method='POST' action="/whois.php" style="margin-bottom: 0px;">
    <input type='hidden' name='page' value='WhoisSearch'>
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="20" colspan="3" class="darkgray">Check the avilability of your domain </td>
    </tr>
    <tr>
    <td width="25%" height="20"><div align="center" class="darkgray">www.</div></td>
    <td width="35%" height="20"><input name="domain" type="text" class="grey" size="12"></td>
    <td width="40%" height="20"><div align="center">
    <select name="ext0" class="grey">
    <option value="com">.com</option>
    <option value="net">.net</option>
    <option value="org">.org</option>
    <option value="biz">.biz</option>
    </select>
    </div></td>
    </tr>
    <tr>
    <td colspan="3">
    <div align="right">
    <input name="Submit2" id='Submit' type="submit" class="formfield" value="search">
    </div></td>
    </tr>
    </table>
    ** NOTE how I specified the value for each option and how that value is the TLD without the first dot, so com instead of .com, net instead of .net, etc...

  3. Join Date
    Jun 2005
    Posts
    2

    Submit to whois.php from another page

    Great thank you. That fixed it.

    This is certainly a great whois script.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts