iNET Interactive - Online Advertising Agency
          
   Home    Authors    About    Login    Contact Us
   Search:   
Advanced Search     
  Articles

  Control Panels (6)
  E-Mail (9)
  Billing (3)
  Security (16)
  Domains & DNS (12)
  Webservers (25)
  Hardware (7)
  Products (6)
  Services (16)
  Policies (5)
  Sales & Marketing (15)
  Companies (33)
  General (995)
  Hosting Guides (56)
  Promotion (8)
  Programming (19)
  Industry News (957)
 
Want to receive new articles via e-mail? Click here!
/Home /Products

Hexillion component 

  Views:    2233
  Votes:    0
by ORCS WEB, Inc. - 3/22/05 Rating: 

Synopsis:

Hexillion offers a component that will help you design an application with network validation features.
Pages: 
The Article

Hexillion offers a component that will help you design an application with network validation features. The HexGadget product consist of 5 separate network components: HexVildEmail, HexDns, HexTCPQuery, HexICMP, and HexLookup. The code you will need to utilize the component is only a few lines as you will see in the example below.

This example shows you how to validate an email address entered into your web form by an end user. The component does several validation checks: MX lookup to validate the domain name, syntext check, and username test.

Here is a basic HTML form with a text box and a submit button. In this example you can place both the HTML and ASP code in the same page.


<% Option Explicit %>
<%
Dim hresult
Dim sEmail
Dim hObj
sEmail = Request("emailaddress")
%>


<HTML>
<HEAD>
<title>HexGadget</title>
</HEAD>
<body>
<form action="" method="post" Value="hexasp.asp">
Enter your email address:<br />
<INPUT type="text" NAME="emailaddress" VALUE="<%= sEmail %>">
<INPUT type="submit" value="Submit">
</form>
</body>
</HTML>

<%
If sEmail <> "" Then
'Call the Hexgadget component.
Set hObj = Server.CreateObject("HexValidEmail.Connection")
'Validate the email address sent from the form above.
hresult = hobj.validate(sEmail,1)

'hresult will return either "0" or "1".
If hresult = "0" Then
Response.Write("The email address you entered is invalid.")
Else
Response.Write("The email address you entered passed the test.")
End If

Set hObj = nothing
End If
%>

You can find more information about this component at http://www.hexillion.com


~Ben

Ben Higgins is a member of the ORCS Web, Inc. Webteam - a company that provides managed hosting services for clients who develop and deploy their applications on Microsoft Windows platforms
Pages: 



 
  Sponsors

 

 
Powered By