ok
Direktori : /home/importfo/www/alphainvestmentadvisory.co.in/ |
Current File : /home/importfo/www/alphainvestmentadvisory.co.in/app.php |
<?php include('admin/config.php'); if (isset($_POST['submit'])) { $name=$_POST['fname']; $email=$_POST['email']; $contact=$_POST['phone']; $sql="INSERT INTO booking(`name`,`email`,`contact`) VALUES('$name','$email','$contact')"; $qry=mysqli_query($db,$sql); if ($qry) { echo "<script>alert('Your Appointment is Successfully Booked We are contect soon........')</script>"; } else{ echo "<script>alert('Registration not Send......')</script>"; } } ?> <div class="appoint-section"> <h4>Get Appointed</h4> <form action="" method="post"> <div class="form-element"> <input type="text" name="fname" placeholder="Your Name"> </div> <div class="form-element"> <input type="email" name="email" placeholder="Your Email"> </div> <div class="form-element"> <input type="number" name="phone" placeholder="Your Phone"> </div> <div class="form-element"> <input type="submit" name="submit" value="Submit"> </div> </form> </div>