Server IP : 104.21.38.3 / Your IP : 104.23.175.230 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/boathouseatalleppey.in/ |
Upload File : |
<?php //include('../conn.php'); //$conn = mysqli_connect("localhost","teamphp","loginphp","boat-form"); if($_SERVER["REQUEST_METHOD"] == "POST") { $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['mobile']; $location=$_POST['location']; $arrival_date=$_POST['arrival_date']; $departure_date=$_POST['departure_date']; $passengers=$_POST['passengers']; $children=$_POST['children']; //$sql = "INSERT INTO `contact-enquiry`(`name`, `email`, `phone`, `location`, `arrival_date`, `departure`, `passengers`, `children`) VALUES ('$name','$email','$phone','$location','$arrival_date','$departure_date','$passengers','$children')"; //echo $sql; /* $sql ="INSERT INTO `contact-enquiry`(`name`, `email`, `phone`, `location`, `arrival_date`, `departure`, `passengers`, `children`) VALUES ('$name','$email','$phone','$location','$arrival_date','$departure_date','$passengers','$children')"; if(mysqli_query($conn,$sql)){ }*/ //$to="[email protected]"; $to="[email protected]"; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $message = ' <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> </head> <body> <div id="email-wrap" style="background: #20b2aa;color: #FFF;font-size:14px;text-transform:capitalise;font-weight:bold;padding:0px 15px;height:313px;width:50%;"> <h1 style="text-align:center">New Enquiry Request - Faber House Boats</h1><br> <p><div style="width:50%;float:left;">Name</div><div style="width:50%;float:left;">'.$name.'</div></p> <p><div style="width:50%;float:left;">Email</div><div style="width:50%;float:left;">'.$email.'</div></p> <p><div style="width:50%;float:left;"> Mobile</div><div style="width:50%;float:left;">'.$phone.'</div></p> <p><div style="width:50%;float:left;"> Location</div><div style="width:50%;float:left;">'.$location.'</div></p> <p><div style="width:50%;float:left;"> Arrival Date</div><div style="width:50%;float:left;">'.$arrival_date.'</div></p> <p><div style="width:50%;float:left;"> Departure Date</div><div style="width:50%;float:left;">'.$departure_date.'</div></p> <p><div style="width:50%;float:left;" > No of Passengers</div><div style="width:50%;float:left;">'.$passengers.'</div></p> <p><div style="width:50%;float:left;"> No of Childrens</div><div style="width:50%;float:left;">'.$children.'</div></p> </div> </body> </html> '; $message .= ''; $subject="New Enquiry!"; if(mail($to,$subject,$message,$headers)){ echo '<script type="text/javascript">'; echo 'window.alert("Contact message has been sent successfully !");'; echo 'window.location.href = "faber-boathouse-packages.php";'; echo '</script>'; } else{ echo '<script type="text/javascript">'; echo 'window.alert("Sorry please try again!");'; echo 'window.location.href = "faber-boathouse-packages.php";'; echo '</script>'; } } ?>