0

This question is more than likely a duplicate however I cannot find this question already on StackOverflow.

HTML Snippet

<!-- newsletter widget -->
<div class="widget-container newsletterBox">
    <div class="inner">
        <h3>Newsletter</h3>
        <form method="get" action="#">
            <input type="text" value="" name="email" class="inputField" placeholder="Email">
            <input type="submit" value="Subscribe" class="btn-arrow">
        </form>
    </div>
</div>
<!--/ newsletter widget -->

A basic input field with a submit button resides on my html page.

How do I safely add their e-mail to the likes of a .txt file on my server without the person being able to enter code to hack my website?

Is it possible to keep my page .html and not have to use PHP?

  • Just a note: that's a pretty bad way of redirecting mobile users. Try something like [this](http://www.designyourway.net/blog/resources/detecting-and-redirecting-mobile-users/) or [this](http://stackoverflow.com/q/9511526/1757964) – APerson Jun 27 '15 at 22:24
  • Could you please clarify the question? Add some context from these comments and explain what you want to happen. – Peter Brittain Jun 27 '15 at 23:01
  • Seems to now be working, I'm going to edit question now, can you please all remove comments? –  Jun 27 '15 at 23:03

0 Answers0