<% '**************************************************************************************** '** '**************************************************************************************** Response.expires = 0 Response.expiresabsolute = Now() - 1 Response.addHeader "pragma", "no-cache" Response.addHeader "cache-control", "private" Response.CacheControl = "no-cache" %> <% Dim sIPAddress sIPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR") If sIPAddress="" Then sIPAddress = Request.ServerVariables("REMOTE_ADDR") Response.Buffer = True 'get action a = Request.Form("a") If (a = "" OR IsNull(a)) Then key = Request.Querystring("key") If key <> "" Then a = "C" 'copy record Else a = "I" 'display blank record End If End If ' Open Connection to the database Set conn = Server.CreateObject("ADODB.Connection") conn.Open xDb_Conn_Str Select Case a Case "C": ' Get a record to display tkey = "" & key & "" strsql = "SELECT * FROM [emails] WHERE [ID]=" & tkey Set rs = Server.CreateObject("ADODB.Recordset") rs.Open strsql, conn If rs.EOF Then Response.Clear Response.Redirect "emailslist.asp" Else rs.MoveFirst ' Get the field contents x_Date = rs("Date") x_IPAddress = rs("IPAddress") x_Name = rs("Name") x_Email = rs("Email") End If rs.Close Set rs = Nothing Case "A": ' Add 'get fields from form x_ID = Request.Form("x_ID") x_Date = Request.Form("x_Date") x_IPAddress = sIPAddress x_Name = Request.Form("x_Name") x_Email = Request.Form("x_Email") tmpFld1 = x_Email If trim(tmpFld1) & "x" = "x" Then tmpFld1 = Null srchFld1 = replace(tmpFld1&"","'","''") srchFld1 = replace(srchFld1,"[","[[]") srchFld1 = "'" & srchFld1 & "'" strsql11 = "SELECT * FROM [emails] WHERE [email] = " & srchFld1 Set qrs1chk = conn.Execute(strsql11) If NOT qrs1chk.eof Then Response.write "This email is existing in our database" Response.write "
" Response.write "Please change it!" Response.end End If ' Open record strsql = "SELECT * FROM [emails] WHERE 0 = 1" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open strsql, conn, 1, 2 rs.AddNew tmpFld = Trim(x_IPAddress) If trim(tmpFld) & "x" = "x" Then tmpFld = Null rs("IPAddress") = tmpFld tmpFld = Trim(x_Name) If trim(tmpFld) & "x" = "x" Then tmpFld = Null rs("Name") = tmpFld rs("Email") = tmpFld1 rs.Update rs.Close Set rs = Nothing conn.Close Set conn = Nothing Response.Clear Response.Redirect "thanx.asp?name=" & x_Name End Select %>
NAVspacer
DOLPHINS
MANATEES
TURTLES
WHALES
SHARK
JOIN OUR NEWSLETTER MAILING LIST
      Links        

WEBSITE URL: DESCRIPTION:


http://WWW.BMG.NET
HTTP://www.SPINGRAPHIX.NET YOUR INTERNET MARKETING AND WEB DESIGN SOLUTION.

http://WWW.reefsavers.org
http://www.montereybayaquarium.org Your Ocean Link E-Quarium
http://www.mrcirl.org The Marine Resources Council, The Marine Resources Council of East Florida
http://www.oceanconservancy.org The Ocean Conservancy, We envision a world of healthy, protected oceans with wild and flourishing ecosystems, free of pollution, and filled with diverse and abundant marine wildlife. 
http://www.sPINGRAPHIX.NET YOUR COMPLETE INTERNET DEVELOPMENT & MARKETING SOLUTION.
HTTP://www.well.com Cam's Surf REPORTS
http://www.surfrider.org Surf rider
http://www.canoasurfexplorer.com Surf packages in Ecuador and the Galapagos Is.

http://www.diveassure.com
http://www.padi.com Padi Diving
http://www.manta-dive.com Killer Photos
http://coastalcleanup.org coastal cleanup
http://www.oceanimagesinc.com Cameras
http://humanitairezorg.org  Humanitaire Zorg CuraÇao
http://www.fl-seafood.com/audio_contact.htm Florida Seafood and Aquaculture
http://www.graysreef.noaa.gov  Gray's Reef National Marine Sanctuary

http://www.reefrelief.org
ADVERTISING
PLACE YOUR AD
HERE TODAY!




CONTACT US AT
(321) 723-9312
OR CLICK HERE
CURRENT NEWS



Statement of Trademark | Privacy PolicyLinks | Site Map

Copyright © 2005 - www.MotherOcean.org - All rights reserved