Site logo

Archived topic

I want to use email newsletter without plugin

1 reply · Started by Md. on February 23, 2020

Viewing posts 1–2 of 2

Below I mentioned a code that I generated from W3Schools. But when someone puts their email on the form, the form does not work.

Actually, I want to use an email newsletter or subscriber form for my site without any plugin...

`<!DOCTYPE html>
<html>
<style>
body {font-family: Arial, Helvetica, sans-serif;}

form {
border: 3px solid #f1f1f1;
font-family: Arial;
}

.container {
padding: 20px;
background-color: #f1f1f1;
}

input[type=text], input[type=submit] {
width: 100%;
padding: 12px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
}

input[type=checkbox] {
margin-top: 16px;
}

input[type=submit] {
background-color: #4CAF50;
color: white;
border: none;
}

input[type=submit]:hover {
opacity: 0.8;
}
</style>
<body>

<h2>CSS Newsletter</h2>

<form action="/action_page.php">

<center><h2>Subscribe to our Newsletter</h2></center>
<input type="text" placeholder="Name" name="name" required>
<input type="text" placeholder="Email address" name="mail" required>
<input type="submit" value="Subscribe">

</form>

</body>
</html>

Hi there,

This is something that should be handled by a plugin.

You would need check with the code author if you want to use a custom code solution.

This archived topic is closed to new replies.