alert('Invalid Verification Code'); history.back();"); } } $applicant_name = urlencode($_POST['applicant_name']); $mobile_number = urlencode($_POST['mobile_number']); $email_id = urlencode($_POST['email_id']); $form_name = urlencode($_POST['form_name']); //Retrive Product Price According To Product Name(form_id) $_SESSION['table_id'] = 'gem_registration'; $payment_status = 'Unpaid'; $product_price = "4999"; $sql =" INSERT INTO $table ( form_name, applicant_name, mobile_number, email_id, gem_seller_id, gem_login_id, gem_password, total_amount, payment_status, order_id, terms_of_service, form_created_on ) VALUES ( '".$_POST["form_name"]."', '".$_POST["applicant_name"]."', '".$_POST["mobile_number"]."', '".$_POST["email_id"]."', '".$_POST["gemSellerId"]."', '".$_POST["gemLoginId"]."', '".$_POST["gemPwd"]."', '".$product_price."', '".$payment_status."', '".$orderId."', 'Checked', '".$date."' ) "; if (!$result = $conn->query($sql)) { die('There was an error running the query [' . $conn->error . ']'); } else { $_SESSION["form_id"] = $conn->insert_id; $form_name = urlencode($_POST["form_name"]); $ch = curl_init('https://crm2.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=GEM&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.$form_name.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_2"] = $response; $ch = curl_init('https://crm11.techlounge.co.in/api/registration-form-submission.php?formId='.$_SESSION["form_id"].'&vendor=TTG&business=GEM&website='.$crm_website.'&amount='.$product_price.'&status=Unpaid&name='.$applicant_name.'&mobile='.$mobile_number.'&email='.$email_id.'&formName='.$form_name.''); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $_SESSION["panel_form_id_11"] = $response; // Payment Gateway Redirection if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'CASHFREE') { include_once('cashfree/request.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'ATOM') { include_once('atom/submit.php'); } else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'PAYU') { include_once('payu/payu-submit.php'); }else if (defined('PAYMENT_GATEWAY') && $currentPaymentGateway == 'RAZORPAY') { include_once('razorpay/razorpay-submit.php'); } // mail $mail = new PHPMailer(true); try { $mail->isSMTP(); $mail->Host = ''.$url1.''; $mail->SMTPAuth = true; $mail->Username = 'no-reply@'.$url1.''; $mail->Password = 'freeDOM@611#'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->setFrom('no-reply@'.$url1.'', "$website"); $mail->addAddress("".$_POST["email_id"].""); $mail->isHTML(true); $mail->Subject = "Ref : Your ".$_POST["form_name"].""; $mail->Body = '
G.E.M REGISTRATION SERVICE
Dear '.$_POST["applicant_name"].',

Thank you for submitting your application for '.$_POST["form_name"].' on our website.

This mail is an acknowledgement of successful submission of your application, on our website. This mail does not confirm the payment status against the submitted application.

Regards,
Team Processing

'; $mail->send(); if($mail){ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'GEM', 'mail_type' => 'Form Submission Mail', 'mailform' => 'sent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); }else{ $data = [ 'email_id' => $mail->Username, 'recipient_email' => $_POST['email_id'], 'amount' => $product_price, 'business' => 'GEM', 'mailform' => 'notsent' ]; $apiUrl = 'https://crm11.techlounge.co.in/api/mail-data-logs.php'; $ch = curl_init($apiUrl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data)); $response = curl_exec($ch); curl_close($ch); } $mail->ClearAllRecipients(); $mail->addAddress('udyogaadhaaronline.org@gmail.com'); $mail->isHTML(true); $mail->Subject = "New ".$_POST["form_name"]." Form Submitted"; $mail->Body = " APPLICANT NAME: ".$_POST["applicant_name"]."
MOBILE NUMBER: ".$_POST['mobile_number']."
EMAIL ID: ".$_POST['email_id']."
GEM SELLER ID : ".$_POST["gemSellerId"]."
GEM LOGIN ID: ".$_POST['gemLoginId']."
GEM PASSWORD : ".$_POST["gemPwd"]."
"; $mail->send(); } catch (Exception $e) { echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; } } } ?> Apply for G.E.M Cancellation | GEM Registration

Apply For G.e.m Cancellation

Application Form For G.e.M Cancellation

  

Guidelines to Fill G.e.m Cancellation form