Contact Us

“>





connect_error) { die(“Connection failed: ” . $conn->connect_error); } // Process form submission if ($_SERVER[“REQUEST_METHOD”] == “POST”) { $name = $_POST[‘name’]; $email = $_POST[’email’]; // Insert data into database $sql = “INSERT INTO contact_submissions (name, email) VALUES (‘$name’, ‘$email’)”; if ($conn->query($sql) === TRUE) { echo “New record created successfully”; } else { echo “Error: ” . $sql . “
” . $conn->error; } // Send email $to = $email; $subject = ‘Message from our website’; $message = ‘Hello ‘ . $name . ‘,

Thank you for contacting us.

Here is your download link: Download PDF

Thank you for contacting us.’; $headers = ‘MIME-Version: 1.0’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= ‘From: your-email@example.com’; // Send email $mail_sent = mail($to, $subject, $message, $headers); if ($mail_sent) { echo ‘

Email sent successfully to ‘ . $email . ‘

‘; } else { echo ‘

Failed to send email to ‘ . $email . ‘

‘; } } $conn->close(); ?>
BSNL के रिचार्ज प्लान्स हैं इतने सस्ते कि मन हो जाएगा अपनी सिम पोर्ट करवाने का।