Posts

Solar

3D Solar System with Moon

Solar system

3D Solar System with Moon

Detail

 Host: sql12.freesqldatabase.com Database name: sql12738410 Database user: sql12738410 Database password: nS8SynW1uW Port number: 3306 http://www.phpmyadmin.co

Php

 <?php    $name = $_POST['name'];    $email = $_POST['email'];    $phone = $_POST['phone'];    $service = $_POST['service'];    $message = $_POST['message'];    //connection    $conn = new mysqli('localhost:3306', 'root', '', 'test');    if($conn->connect_error){      die('Connection failed: '.$conn->connect_error);    }    else{      $stmt = $conn->prepare("INSERT INTO contact (name, email, phone, service, message) VALUES (?, ?, ?, ?, ?)");      $stmt->bind_param("ssiss", $name, $email, $phone, $service, $message);      $stmt->execute();      echo "Contact Form sent successfully.";      $stmt->close();      $conn->close();    } ?>

Css

 * {     box-sizing: border-box;     margin: 0;     padding: 0;     font-family: Arial, sans-serif; } body {     background-color: #f4f4f4;     display: flex;     justify-content: center;     align-items: center;     height: 100vh; } .contact-form-container {     background-color: #fff;     padding: 20px;     border-radius: 8px;     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);     width: 100%;     max-width: 400px; } h2 {     text-align: center;     margin-bottom: 20px; } form {     display: flex;     flex-direction: column; } label {     margin-bottom: 5px;     font-weight: bold; } input, textarea, select {     padding: 10px;     margin-bottom: 15px;     border: 1px solid #ccc;     border-radius: 4px;     width: 100%; } button ...

Html

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Contact Form</title>     <link rel="stylesheet" href="styles.css"> </head> <body>     <div class="contact-form-container">         <h2>Contact Us</h2>         <form action="connect.php" method="POST">             <label for="name">Name:</label>             <input type="text" id="name" name="name" required>             <label for="email">Email:</label>             <input type="email" id="email" name="email" required>             <label for="phone">Phone Number:</label...

Youtube Thumbnail

Image
YouTube Thumbnail Downloader YouTube Thumbnail Downloader Get Thumbnail