Enter Raffle
<script>
// Add your JavaScript code here to handle the raffle logic
</script>
<title>Raffle Page</title>
Enter Raffle
<script>
function submitForm() {
// Get the name and email from the form
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
// Generate a random number between 1 and 1000
var randomNumber = Math.floor(Math.random() * 1000) + 1;
// Send an email to the participant with their random number
var subject = "You've been entered into our raffle!";
var message = "Dear " + name + ",\n\nThank you for entering our raffle! Your entry has been received.\n\nYour random number is: " + randomNumber + "\n\nGood luck!\n\nSincerely,\nThe Raffle Team";
window.location.href = "mailto:" + email + "?subject=" + subject + "&body=" + encodeURIComponent(message);
}
</script>