www.webdeveloper.com
Results 1 to 2 of 2

Thread: display data on positive result

  1. #1
    Join Date
    Apr 2008
    Posts
    36

    display data on positive result

    got a form that when its searched the whois database says if domain is available or not

    I want it to display a link underneath saying buy no when the returned result is available, how do I do this ?

  2. #2
    Join Date
    Apr 2008
    Posts
    36
    Code:
            'If the domain name is to short then tell them it's invalid
            If Len(strDomainName) < 3 Then
            	
            	'Set the return result of the function to not valid
            	whoisResult = "Not Valid - must be at least 3 characters"
            
            'Check the whois result to see if a result has NOT been found
            ElseIf InStr(1, strWhoisResultString, strCheckString, vbTextCompare) Then
            	
            	'Set the return result of the function to available
            	whoisResult = "Available for registration, Please click buy now below to register your domain name with My Company Name"
            	
            'Else if there is an error
            ElseIF InStr(1, strWhoisResultString, "Error", vbTextCompare) Then
            	
            	'Set the return result of the function to Taken
            	whoisResult = "An Error has occured, please try searching again"
            	
            'Else there was a result
            Else
            	
            	'Set the return result of the function to Taken
            	whoisResult = "Is currently not available for registration, please try an alternative name"
            End If

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles