0
In the footer of all the pages of the site that I am touching has a Subscribe field, for email redemption and newsletter sending. But I don’t know how to make it work, someone helps me?
Follows:
<form class="newsletter">
<input type="email" name="EMAIL" placeholder="Seu endereço de e-mail" required />
<button><i class="fa fa-paper-plane"></i></button>
</form>
Can post some sample code?
– Fabricio
Define "work".
– bfavaretto
Your form needs an attribute
action
pointing to the server that will receive the data.– bfavaretto
So your question is in the PHP part?
– bfavaretto
@bfavaretto I don’t know if it’s php or if I have to use some script for it... I don’t know how to work javascript. In the form, when I click submit I am directed to the php page. even if I use Location: index.html .
– S.Rpp
In PHP you check if a valid email was sent in the form, then you register in the database.
– Sam