Subscribe-Unsub Button Code..How do I make this work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ucdesigns
    New Member
    • Oct 2013
    • 2

    Subscribe-Unsub Button Code..How do I make this work

    I have this string which is supposed to allow someone to jot their email address in to subscribe or unsubscribe to a newsletter or similar item. New at HTML and PHP, etc. so can someone tell me what do I place where to make this code work? See below:
    Code:
    <form action="http://example.com/" id="newsletter-form"> <fieldset> <div class="rowElem"> <h2>Newsletter</h2> <input type="email" value="Enter Your Email Here" onFocus="if(this.value=='Enter Your Email Here'){this.value=''}" onBlur="if(this.value==''){this.value='Enter Your Email Here'}" > <div class="clear"><a href="http://bytes.com/" class="fleft">Unsubscribe</a><a href="http://bytes.com/" class="fright" onClick="document.getElementById('newsletter-form').submit()">Submit</a></div> </div> </fieldset> </form>
    Last edited by Dormilich; Oct 22 '13, 08:37 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    if someone should be able to subscribe/unsubscribe, there should be a server-side programming language involved.

    Comment

    • ucdesigns
      New Member
      • Oct 2013
      • 2

      #3
      That's what I would think too but this code is all there is. That's why I came here hoping someone would know either what is missing or what other code I need to use or place in strategic locations to make this work.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        well, you need a server-side language (e.g. PHP) to save/remove the passed email to/from the storage facility (DB, file).

        Comment

        Working...