Jump to content

Query String Help PHP


nkosinathi

Recommended Posts

Hi All

 

I need to write a PHP file/app to use the query string and from the results(query string results) obtained, write a conditional statement. The statement will be either Domain available or Domain Not Available depending on the (query string results and further processing might be needed. 

 

I have the following query string "Domain=MyDomainName&Enter=Enter" the whole URL and Query String  is

 

http://www.coza.net.za/cgi-bin/whois.sh?Domain=MyDomainName&Enter=Enter.

 

I want to be able to echo whether the domain is a Match (Meaning not available for registration on .CO.ZA namespace) or it has NO Match ( I can Register on CO.ZA)

 

I will have the text box in the Form where the the user will input the desired name and action my PHP script E.G.

 

<form action="domainchecker.php" method="post" name="domain">

        Domain name:

        <table>

          <tr><td><input name="domainname" type="text" /></td></tr>

          <tr><td><input type="submit" name="submitBtn" value="Check domain"/></td>

        </tr>

        </table> 

      </form>

 

 

MY Problem is what to put in domainchecker.php to implement this. I have tried socket connection to the whois server but co.za does not have this, I have to use Query strings and I am stuck and pulling my hair off.

 

Thanks in advance

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.