<% Function padMyNumber(value) padMyNumber = Right("00" & value,2) End Function if (Request.form("hdnSubmit") = "true") then strEmail = trim(Request.Form("txtemail")) strMember = trim(request.form("txtName")) strComment = replace(Request.form("txtPledge"),"'" ,"''") strdate = Month(date()) & "/" & Day(date()) & "/" & Year(date()) & " " & Hour(now) & ":" & Minute(now) & ":" & Second(now) eSqlQuery="INSERT INTO guestbook(gname,email,comment,gdate) VALUES ('"& strMember &"','"& strEmail &"','"& strComment &"','"&strdate&"' )" set rsUser = dbconn.execute(eSqlQuery) set rsUser = nothing SqlQuery="INSERT INTO guestbook_backup(gname,email,comment,gdate) VALUES ('"& strMember &"','"& strEmail &"','"& strComment &"','"&strdate&"' )" set rsUser1 = dbconn.execute(SqlQuery) set rsUser1 = nothing session("sent") ="yes" session("fed") ="yes" response.Redirect("healthpledge.asp?nothing") end if %> ::welcome to meveg festivel::
  Home
  Getting Involved
  Meveg Guide
  Participants
  Registration
  Health Pledge
 
   
   
   
     
 
 
   
  Your Health Pledge  
   
 
 
 
 
  Name
  Email ID
  Your Pledge
 
 
  <% rsComment= "SELECT gname,email,comment,gdate,emirate from guestbook order by id desc" set rs = Server.CreateObject("ADODB.Recordset") rs.Open rsComment,dbconn,1,2 if not (rs.EOF) then while not (rs.EOF) date_word = Monthname(DatePart("M", rs("gdate"))) & " " & DAY(rs("gdate")) & "," & YEAR(rs("gdate")) 'date_word =Monthname(DatePart("M",cdate(rs("gdate")))) & " " & DatePart("D",cdate(rs("gdate"))) & ","& DatePart("YYYY",cdate(rs("gdate"))) if hour(rs("gdate")) = 12 then timepart = hour(rs("gdate")) & ":" & padMyNumber(minute(rs("gdate"))) &"PM" end if if (hour(rs("gdate")) > 12) then timepart = (hour(rs("gdate"))-12)& ":" & padMyNumber(minute(rs("gdate"))) & "PM" end if if (hour(rs("gdate")) < 12) then timepart = hour(rs("gdate")) & ":" & padMyNumber(minute(rs("gdate"))) &"AM" end if if (hour(rs("gdate")) =0) then timepart = 12 & ":" & padMyNumber(minute(rs("gdate"))) &"AM" end if '(FormatDateTime(timepart, vbLongTime) ' datepart("h",rs("gdate")) & ":" & datepart("n",rs("gdate")) %> <% rs.movenext wend end if %>
    <%if session("sent")="yes" then %> Thank you for your valuable pledge.. <% session("sent")="" end if %>
» "><%=rs("gname")%> says
  <%= Replace(rs("comment")&"", vbLf, "
") %>
  Posted on: <%=date_word%> at <%=timepart%>
 
 
     
 
  Home I Getting Involved I Meveg Guide I Participants I Registration I Health Pledge I Privacy Policy  
Powered By f1 Interactive. 1024*768 resolution required.