Shoot for Hope - Registration form

"; $body_s.="We will contact you soon for further procedural necessary action.\n"."
"; $body_s.="Here is the information you have submitted:\n"."
"; $to="webmaster@deepalaya.org, resource@deepalaya.org,".$_POST['Email'].""; $subject="Shoot for Hope - RESPONSE CODE:- ".$oid; $body="\nName : ".$_POST['Title'].$_POST['FName'].$_POST['LName']."
"; $body.="\nDOB : ".$_POST['dob']."
"; $body.="\nEmail : ".$_POST['Email']."
"; $body.="\nAdd : ".$_POST['Add']."
"; $body.="\nCity : ".$_POST['City']."
"; $body.="\nZip Code : ".$_POST['ZIP']."
"; $body.="\nState : ".$_POST['State']."
"; $body.="\nCountry : ".$_POST['SPS_country']."
"; $body.="\nTelephone No : ".$_POST['Tel_R']."
"; $body.="\nMobile No : ".$_POST['Mobile']."
"; $body.="\nNationality : ".$_POST['FC']."
"; $body.="\nRegistration For : ".$_POST['type']."
"; $body.="\nPayment Mode : ".$_POST['PG']."
"; $body.="\nAmount : ".$_POST['amount']."
"; $body.="\nKnow about the event : ".$_POST['knowabouttheevent']."
"; $body.="\nComments : ".$_POST['SPS_comments']."
"; $body.="\nIP Address : ".$_SERVER["REMOTE_ADDR"]."
"; $body.="\nTime : ".date('d-m-y, H:i:s')."
"; $body.="\n Ref No : ".$oid."
"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; //echo $body_s.$body; //mail($_POST['Email'],$subject,$body_s.$body,$headers."FROM: resource@deepalaya.org"); mail($to,$subject,$body_s.$body,$headers."FROM: resource@deepalaya.org"); $payment=$_POST['PG']; if($payment=="Draft") { ?>

Demand Draft

Please send the eqivalent of Rs. ""/- to this address:
Marketing Department, Deepalaya
46, Institutional Area, D-Block, Janakpuri
New Delhi - 110 001, India

Note: please state your Name, Address and Contact Information as given in the previous form. Please remember to bring the printout of the filled in form you receive on your email id on 25th February, 2012.

You can submit the cash on the day of the workshop and photo walk. Please remember to bring the printout of the filled in form you receive on your email id on 25th February, 2012.

A/c Num: 207010100174664
Axis Bank
C-3/21 Janakpuri
New Delhi-110058
30) $_POST['vpc_MerchTxnRef'] = substr($refcode,1,30); else $_POST['vpc_MerchTxnRef'] = $refcode; $_POST['vpc_Merchant'] = "DEEPALAYA"; $_POST['vpc_OrderInfo'] = $_POST['vpc_MerchTxnRef']; $_POST['vpc_Locale'] = "en"; $_POST['vpc_ReturnURL'] = "http://www.deepalaya.org/scripts/payment_done.php"; $_POST['SubButL'] = "Pay Now!"; // show me the money $_POST['vpc_Amount']= $amount*100; // *100, because paisa rule the house /* end of data hack */ // ********************* // START OF MAIN PROGRAM // ********************* // Define Constants // ---------------- // This is secret for encoding the MD5 hash // This secret will vary from merchant to merchant // To not create a secure hash, let SECURE_SECRET be an empty string - "" // $SECURE_SECRET = "secure-hash-secret"; $SECURE_SECRET = "E1D0362D112A1239B8DBC76BE90895AE"; // add the start of the vpcURL querystring parameters $vpcURL = $_POST["virtualPaymentClientURL"] . "?"; // Remove the Virtual Payment Client URL from the parameter hash as we // do not want to send these fields to the Virtual Payment Client. unset($_POST["virtualPaymentClientURL"]); unset($_POST["SubButL"]); // The URL link for the receipt to do another transaction. // Note: This is ONLY used for this example and is not required for // production code. You would hard code your own URL into your application. // Get and URL Encode the AgainLink. Add the AgainLink to the array // Shows how a user field (such as application SessionIDs) could be added //$_POST['AgainLink']=urlencode($HTTP_REFERER); // Create the request to the Virtual Payment Client which is a URL encoded GET // request. Since we are looping through all the data we may as well sort it in // case we want to create a secure hash and add it to the VPC data if the // merchant secret has been provided. $md5HashData = $SECURE_SECRET; ksort ($_POST); // set a parameter to show the first pair in the URL $appendAmp = 0; foreach($_POST as $key => $value) { // create the md5 input and URL leaving out any fields that have no value if (strlen($value) > 0) { // this ensures the first paramter of the URL is preceded by the '?' char if ($appendAmp == 0) { $vpcURL .= urlencode($key) . '=' . urlencode($value); $appendAmp = 1; } else { $vpcURL .= '&' . urlencode($key) . "=" . urlencode($value); } $md5HashData .= $value; } } // Create the secure hash and append it to the Virtual Payment Client Data if // the merchant secret has been provided. if (strlen($SECURE_SECRET) > 0) { $vpcURL .= "&vpc_SecureHash=" . strtoupper(md5($md5HashData)); } // FINISH TRANSACTION - Redirect the customers using the Digital Order // =================================================================== return $vpcURL; } function str_makerand ($minlength, $maxlength, $useupper, $usespecial, $usenumbers) { /* Author: Peter Mugane Kionga-Kamau http://www.pmkmedia.com Description: string str_makerand(int $minlength, int $maxlength, bool $useupper, bool $usespecial, bool $usenumbers) returns a randomly generated string of length between $minlength and $maxlength inclusively. Notes: - If $useupper is true uppercase characters will be used; if false they will be excluded. - If $usespecial is true special characters will be used; if false they will be excluded. - If $usenumbers is true numerical characters will be used; if false they will be excluded. - If $minlength is equal to $maxlength a string of length $maxlength will be returned. - Not all special characters are included since they could cause parse errors with queries. Modify at will. */ //$charset = "abcdefghijklmnopqrstuvwxyz"; $charset .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; /* if ($useupper) $charset .= "ABCDEFGHIJKLMNOPQRSTUVWXYZ";*/ if ($usenumbers) $charset .= "0123456789"; /*if ($usespecial) $charset .= "@#$"; */ // Note: using all special characters this reads: "~!@#$%^&*()_+`-={}|\\]?[\":;'> $maxlength) $length = mt_rand ($maxlength, $minlength); else $length = mt_rand ($minlength, $maxlength); for ($i=0; $i

 

Award

Global CSR Excellence & Leadership award presented by ABP News to Deepalaya