PK

ADDRLIN : /proc/self/root/home/bw2hgtn172qm/www/urologysolution.in/bin/
FLL :
Current File : //proc/self/root/home/bw2hgtn172qm/www/urologysolution.in/bin/processapp.php

<?php
if ((isset($_POST['name'])) && (strlen(trim($_POST['name'])) > 0)) {
	$name = stripslashes(strip_tags($_POST['name']));
} else {$name = 'No name entered';}

if ((isset($_POST['age'])) && (strlen(trim($_POST['age'])) > 0)) {
	$age = stripslashes(strip_tags($_POST['age']));
} else {$age = 'No age entered';}

if ((isset($_POST['gender'])) && (strlen(trim($_POST['gender'])) > 0)) {
	$gender = stripslashes(strip_tags($_POST['gender']));
} else {$gender = 'No gender entered';}

if ((isset($_POST['email'])) && (strlen(trim($_POST['email'])) > 0)) {
	$email = stripslashes(strip_tags($_POST['email']));
} else {$email = 'No email entered';}

if ((isset($_POST['phone'])) && (strlen(trim($_POST['phone'])) > 0)) {
	$phone = stripslashes(strip_tags($_POST['phone']));
} else {$phone = 'No phone entered';}

if ((isset($_POST['symptoms'])) && (strlen(trim($_POST['symptoms'])) > 0)) {
	$symptoms = stripslashes(strip_tags($_POST['symptoms']));
} else {$symptoms = 'No symptoms entered';}

if ((isset($_POST['timings'])) && (strlen(trim($_POST['timings'])) > 0)) {
	$timings = stripslashes(strip_tags($_POST['timings']));
} else {$timings = 'No timings entered';}

if ((isset($_POST['datetime'])) && (strlen(trim($_POST['datetime'])) > 0)) {
	$datetime = stripslashes(strip_tags($_POST['datetime']));
} else {$datetime = 'No datetime entered';}

ob_start();
?>
<html>
<head>
<style type="text/css">
</style>
</head>
<body>
<table width="550" border="1" cellspacing="2" cellpadding="2">
  <tr bgcolor="#eeffee">
    <td>Name</td>
    <td><?=$name;?></td>
  </tr>  
  <tr bgcolor="#eeffee">
    <td>Age</td>
    <td><?=$age;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Gender</td>
    <td><?=$gender;?></td>
  </tr>
  <tr bgcolor="#eeeeff">
    <td>Email</td>
    <td><?=$email;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Phone</td>
    <td><?=$phone;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Message</td>
    <td><?=$symptoms;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Appointment Timings</td>
    <td><?=$timings;?></td>
  </tr>
  <tr bgcolor="#eeffee">
    <td>Appointment Date</td>
    <td><?=$datetime;?></td>
  </tr>
</table>
</body>
</html>
<?php

$body = ob_get_contents();
$to = "drknatarajan@yahoo.co.in";
$email = "drknatarajan@yahoo.co.in";
//$fromaddress = "admin@urologysolutions.com";
$fromaddress = $_POST['email'];
$fromname = "Online Contact";

require("phpmailer.php");

$mail = new PHPMailer();

//$mail->From     = "urologysolutions.com";
$mail->From     = $_POST['email'];
$mail->FromName = "Appointment Form";
$mail->AddAddress("drknatarajan@yahoo.co.in","Name 1");
//$mail->AddAddress("another_address@example.com","Name 2");

$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->Subject  =  "Appointment Information To urologysolution.com";
$mail->Body     =  $body;
$mail->AltBody  =  "This is the text-only body";

if(!$mail->Send()) {
	$recipient = $_POST['email'];
	$subject = 'Contact form failed';
	$content = $body;
	$to = "drknatarajan@yahoo.co.in";	
  mail($recipient, $subject, $content, $to, "From: $fromaddress\r\nReply-To: $email\r\nX-Mailer: DT_formmail");
  exit;

}
?>

<!--$to =$_POST['email'];
$email =$_POST['email'];
//$fromaddress = "admin@urologysolutions.com";
$fromaddress = "nandhini@vettritech.com";
$fromname = "Online Contact";

require("phpmailer.php");

$mail = new PHPMailer();

//$mail->From     = "urologysolutions.com";
$mail->From     = "nandhini@vettritech.com";
$mail->FromName = "Contact Form";
$mail->AddAddress($_POST['email'],"Name 1");
//$mail->AddAddress("another_address@example.com","Name 2");

$mail->WordWrap = 50;
$mail->IsHTML(true);

$mail->Subject  =  "Contact Information from urologysolution.com";
$mail->Body     =  $body;
$mail->AltBody  =  "This is the text-only body";

if(!$mail->Send()) {
	$recipient = $_POST['email'];
	$subject = 'Contact form failed';
	$content = $body;	
  mail($recipient, $subject, $content,$fromaddress, "From: nandhini@vettritech.com\r\nReply-To: $email\r\nX-Mailer: DT_formmail");
  exit;-->





PK 99