File manager - Edit - /home/meharhashir55/passivemrbot/contact-us.php
Back
<?php // Base URL $base_url = (isset($_SERVER["HTTPS"]) ? "https://" : "http://") . $_SERVER["HTTP_HOST"] . "/"; // Handle form submission if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = $_POST["name"]; $email = $_POST["email"]; $message = $_POST["message"]; // Replace with your actual email address $to = "your_email@example.com"; $subject = "New Contact Form Submission"; $body = "Name: " . $name . "\nEmail: " . $email . "\nMessage: " . $message; $headers = "From: " . $email; if (mail($to, $subject, $body, $headers)) { $success_message = "Your message has been sent successfully!"; } else { $error_message = "Oops! There was an error sending your message."; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Contact Us - Passive Income Strategies</title> <link rel="stylesheet" href="./assets/css/style.css"> <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/daisyui@3.5.1/dist/full.css" rel="stylesheet" type="text/css" /> <link rel="stylesheet" href="./assets/css/style.css"> <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.css" /> <script src="https://cdn.jsdelivr.net/npm/scrollreveal@4.0.9/dist/scrollreveal.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.5/gsap.min.js"></script> </head> <body> <header class="bg-gradient-to-r from-cyan-500 to-blue-500 text-white py-4"> <div class="container mx-auto px-4"> <nav class="flex justify-between items-center"> <a href="<?php echo $base_url; ?>" class="text-2xl font-bold">Passive Income Strategies</a> <ul class="flex space-x-4"> <li><a href="<?php echo $base_url; ?>">Home</a></li> <li><a href="<?php echo $base_url; ?>about-us.php">About Us</a></li> <li><a href="<?php echo $base_url; ?>contact-us.php">Contact Us</a></li> <li><a href="<?php echo $base_url; ?>privacy-policy.php">Privacy Policy</a></li> <li><a href="<?php echo $base_url; ?>terms-of-service.php">Terms of Service</a></li> </ul> </nav> </div> </header> <main class="container mx-auto px-4 py-8"> <h1 class="text-4xl font-bold mb-4">Contact Us</h1> <?php if (isset($success_message)) : ?> <div class="alert alert-success"><?php echo $success_message; ?></div> <?php endif; ?> <?php if (isset($error_message)) : ?> <div class="alert alert-error"><?php echo $error_message; ?></div> <?php endif; ?> <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"> <div class="mb-4"> <label for="name" class="block text-gray-700 font-bold mb-2">Name:</label> <input type="text" id="name" name="name" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" required> </div> <div class="mb-4"> <label for="email" class="block text-gray-700 font-bold mb-2">Email:</label> <input type="email" id="email" name="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" required> </div> <div class="mb-4"> <label for="message" class="block text-gray-700 font-bold mb-2">Message:</label> <textarea id="message" name="message" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" required></textarea> </div> <button type="submit" class="btn btn-primary">Send Message</button> </form> </main> <footer class="bg-gray-200 py-4 text-center"> <p>© <?php echo date("Y"); ?> Passive Income Strategies. All rights reserved.</p> </footer> <script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-bundle.min.js"></script> <script src="./assets/js/app.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.24 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings