
Deepesh pandey (creator)
<?php
$name = $_POST[‘name’];
$email = $_POST[’email’];
$message = $_POST[‘message’];
// Insert message into database
$pdo = new PDO(‘mysql:host=localhost;dbname=my_database’, ‘username’, ‘password’);
$stmt = $pdo->prepare(‘INSERT INTO messages (name, email, message) VALUES (?, ?, ?)’);
$stmt->execute([$name, $email, $message]);
echo ‘Thank you for your message!’;
?>
var myImage = document.querySelector(‘img’);
myImage.addEventListener(‘click’, function() {
alert(‘You clicked on the image!’);
});
function showMenu() {
var menu = document.querySelector(‘#menu’);
menu.style.display = ‘block’;
}
function hideMenu() {
var menu = document.querySelector(‘#menu’);
menu.style.display = ‘none’;
}
body {
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
h1 {
color: #000;
font-size: 36px;
}
p {
color: #333;
font-size: 18px;
}
img {
border: 1px solid #ccc;
margin: 10px;
}
a {
color: #0070c0;
text-decoration: none;
}
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<h1>Welcome to my website</h1>
<p>This is my first website.</p>
<img src=”image.jpg” alt=”My Image”>
<a href=”https://www.example.com”>Visit Example Website</a>
</body>
</html>
• • •
- First
- Gemstones“I’ll just step over to Green Gables after tea and find out from Marilla where he’s gone and why,” the worthy woman finally concluded. “He doesn’t generally go to town this time of year and he never visits; if he’d run out of turnip seed he wouldn’t dress up and take the buggy to go for more; he wasn’t driving fast enough to be going for a doctor.
• • •