D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
epksuofuukz9
/
public_html
/
Filename :
enquiry-.php
back
Copy
<?php $session_captcha=$_REQUEST['session_captcha']; $captcha=$_REQUEST['captcha']; $name=$_REQUEST['name']; $email=$_REQUEST['email']; $number=$_REQUEST['number']; $number1=$_REQUEST['number1']; $course=$_REQUEST['course']; $course_type=$_REQUEST['course_type']; $msg=$_REQUEST['msg']; $to = 'info@bismilsoft.com'; $subject = 'Website Enquiry Form'; $req='Enquiry User'; // message $message =' <html> <head> <title>Website Enquiry Form</title> </head> <body> <p style="font-family:Arial, Helvetica, sans-serif; color:#FF0000; font-size:16px; font-weight:600;">Enquiry Form </p> <table width="500" border="1" style="border:1px solid #CCCCCC;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;border-radius:5px; border-collapse:collapse;" > <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Full name</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$name.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Email address </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$email.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Country Code </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$number.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Phone Number </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$number1.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Course Name </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$course.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123"> Training Mode </td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$course_type.'</td> </tr> <tr style="background:#f5f5f5"> <td style="border-bottom:0px dotted black;padding:5px; color:#0066FF; font-weight:600; font-size:13px;" width="123">Message</td> <td style="border-bottom:0px dotted black;padding:5px;" width="361">'.$msg.'</td> </tr> </table> </body> </html>'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: $req <info@bismilsoft.com>" . "\r\n"; if($session_captcha == $captcha) { $result=mail($to, $subject, $message, $headers); echo($result); if(!$result) { echo "Error"; } else { echo "1"; } }else { echo "Invalid Captcha"; } ?>