<%@LANGUAGE="VBSCRIPT"%> <% ' *** Edit Operations: declare variables Dim MM_editAction Dim MM_abortEdit Dim MM_editQuery Dim MM_editCmd Dim MM_editConnection Dim MM_editTable Dim MM_editRedirectUrl Dim MM_editColumn Dim MM_recordId Dim MM_fieldsStr Dim MM_columnsStr Dim MM_fields Dim MM_columns Dim MM_typeArray Dim MM_formVal Dim MM_delim Dim MM_altVal Dim MM_emptyVal Dim MM_i MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")) If (Request.QueryString <> "") Then MM_editAction = MM_editAction & "?" & Request.QueryString End If ' boolean to abort record edit MM_abortEdit = false ' query string to execute MM_editQuery = "" %> <% ' *** Set variable to restrict donation Dim TsSl If Request.Form("SriL") = "Sri Lanka" Then TsSl = "Tsunami1204_SL" Else TsSl = "Tsunami1204" End if ' *** Insert Record: set variables If (CStr(Request("MM_insert")) = "Single") Then MM_editConnection = MM_partner_STRING MM_editTable = "Tsunai1204" MM_editRedirectUrl = "https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=willis@prasadproject.org&item_name=Tsunami Disaster Relief&item_number=" & Request.Form("radiobutton") & " &return=http://www2.prasad.org/donation_tst.asp&cancel_return=http://www2.prasad.org/donation_ct.asp&no_shipping=1&no_note=1¤cy_code=USD&tax=0&first_name=" & Request.Form("fname") & "&last_name=" & Request.Form("lname") & "&address1=" & Request.Form("addr1") & "&address2=" & Request.Form("addr2") & "&city=" & Request.Form("city") & "&state=" & Request.Form("state") & "&zip=" & Request.Form("zip") & "&amount=" & Request.Form("amount2") MM_fieldsStr = "title|value|fname|value|middle|value|lname|value|addr1|value|addr2|value|city|value|state|value|country|value|zip|value|home_phone|value|day_phone|value|email|value|SriL|value|e-monthly_sub|value|amount2|value" MM_columnsStr = "Title|',none,''|FName|',none,''|Middle|',none,''|LName|',none,''|Addr1|',none,''|Addr2|',none,''|City|',none,''|State|',none,''|Country|',none,''|Zip|',none,''|HomePh|',none,''|DayPh|',none,''|Email|',none,''|SriLanka|none,'Y','N'|Sub|none,'Y','N'|Amount2|',none,''" ' create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, "|") MM_columns = Split(MM_columnsStr, "|") ' set the form values For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i))) Next ' set variable for email subscription Dim elsub If Request.Form("e-monthly_sub") = "Subscribe" Then elsub = Request.Form("e-monthly_sub") Else elsub = "No" End If ' send message with form data 'message = "A Tsunami Relief Donation has been submitted. See below for details.

" & Request.Form("title") & " " & Request.Form("fname") & " " & Request.Form("lname") & "
" & Request.Form("addr1") & "
" & Request.Form("addr2") & "
" & Request.Form("city") & ", " & Request.Form("state") & " " & Request.Form("zip") & "
" & Request.Form("email") & "
Subscribe to email list: " & elsub & "

This is only a notification. If the tranaction is successfull an email from paypal will follow." 'Set aeObj = CreateObject("ActivXperts.SmtpMail") 'aeObj.Activate "AFC7B-35BB0-FC43C" 'aeObj.HostName = "24.97.126.251" 'aeObj.FromAddress = "prasad@prasadproject.org" 'aeObj.FromName = "The PRASAD Project" 'aeObj.AddTo "willis@prasadproject.org","Willis Olivo" 'aeObj.Subject = "Tsunami Relief Donation Notice" 'aeObj.Priority = 3 'aeObj.BodyType = 1 'aeObj.Body = message 'aeObj.Send ' append the query string to the redirect URL If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString Else MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString End If End If End If %> <% ' *** Insert Record: construct a sql insert statement and execute it Dim MM_tableValues Dim MM_dbValues If (CStr(Request("MM_insert")) <> "") Then ' create the sql insert statement MM_tableValues = "" MM_dbValues = "" For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_formVal = MM_fields(MM_i+1) MM_typeArray = Split(MM_columns(MM_i+1),",") MM_delim = MM_typeArray(0) If (MM_delim = "none") Then MM_delim = "" MM_altVal = MM_typeArray(1) If (MM_altVal = "none") Then MM_altVal = "" MM_emptyVal = MM_typeArray(2) If (MM_emptyVal = "none") Then MM_emptyVal = "" If (MM_formVal = "") Then MM_formVal = MM_emptyVal Else If (MM_altVal <> "") Then MM_formVal = MM_altVal ElseIf (MM_delim = "'") Then ' escape quotes MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'" Else MM_formVal = MM_delim + MM_formVal + MM_delim End If End If If (MM_i <> LBound(MM_fields)) Then MM_tableValues = MM_tableValues & "," MM_dbValues = MM_dbValues & "," End If MM_tableValues = MM_tableValues & MM_columns(MM_i) MM_dbValues = MM_dbValues & MM_formVal Next MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ") values (" & MM_dbValues & ")" If (Not MM_abortEdit) Then ' execute the insert Set MM_editCmd = Server.CreateObject("ADODB.Command") MM_editCmd.ActiveConnection = MM_editConnection MM_editCmd.CommandText = MM_editQuery MM_editCmd.Execute MM_editCmd.ActiveConnection.Close If (MM_editRedirectUrl <> "") Then Response.Redirect(MM_editRedirectUrl) End If End If End If %> <% Dim rc_single Dim rc_single_numRows Set rc_single = Server.CreateObject("ADODB.Recordset") rc_single.ActiveConnection = MM_partner_STRING rc_single.Source = "SELECT * FROM Tsunai1204" rc_single.CursorType = 0 rc_single.CursorLocation = 2 rc_single.LockType = 1 rc_single.Open() rc_single_numRows = 0 %> The PRASAD Project

programs about us global news global events donate participate contact us

 

Tsunami Relief
*Required Information
Preferred Title
First Name *
Middle Initial
Last Name *
   
Address *
Address cont.
City
State/Province
Country
Zip/Postal Code
Home Phone (xxx) xxx-xxxx
Day Phone (xxx) xxx-xxxx
E-mail Address *
  I want my donation to directly support the Tsunami Relief effort wherever it is needed.
  I want my donation to directly support relief efforts in BATTICALOA - NORTHEAST, Sri Lanka
  I want my donation to directly support relief efforts in WELIGAM - SOUTHWEST, Sri Lanka
Note: PRASAD is active with relief efforts in KOVALAM, SOUTHEAST INDIA and in partnerships with other groups.
  I want to receive e-mail updates
Amount $

If you experience difficulties making your donation, you may call us toll free at 888.840.6679 and we will assist you in making your donation. Donate by check
 
You may also contact our webmaster via email at feedback@prasad.org

    

 


PRASAD...

Uplifting Communities through Health, Education and Sustainable Development

Newsletters:

PRASAD Project

PRASAD Australia


Prasad Chikitsa

PRASAD France


PRASAD Spain



PRASAD
Annual Report


 


©2005. The PRASAD Project. All rights reserved.
PRASAD® is a registered trademark and Netraprakash SM is a servicemark of The PRASAD Project.

The PRASAD Project is a 501(c)(3) tax-exempt organization. A copy of the latest annual report of
The PRASAD Project can be obtained from our office or from the Office of the Attorney General by
writing to The Charities Bureau, 120 Broadway, New York, NY 10271.

<% rc_single.Close() Set rc_single = Nothing %>