1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

help plz with subscribe form

Discussion in 'HTML & JavaScript' started by thorjack1990, May 2, 2013.

  1. thorjack1990

    thorjack1990 BANNED BANNED

    Joined:
    Feb 15, 2013
    Messages:
    71
    Likes Received:
    9
    anyone know how to make this subscribe form


    http://s1118.photobucket.com/user/roiancuares/media/subscribe_zps5454177e.jpg.html


    a pop up will appear if blank the form is blank.,plz
     
  2. kralcx

    kralcx Junior Member

    Joined:
    May 25, 2010
    Messages:
    164
    Likes Received:
    49
  3. AAWebDev

    AAWebDev Jr. VIP Jr. VIP Premium Member

    Joined:
    May 20, 2012
    Messages:
    677
    Likes Received:
    63
    Occupation:
    Forum Developer
    Location:
    Dexel Island
    Home Page:
    you want subscription form code or pop up code ?
     
  4. seocoder

    seocoder Newbie

    Joined:
    May 22, 2013
    Messages:
    12
    Likes Received:
    0
    Try creating a function called validateForm() that accepts no parameters and that validates the form.
    Use document.getElementById("#firstname").value to get the information from the input element with id=firstname, and in this way retrieve all the elements. Then you use that information to show it to your user within the same validateForm() function.

    Bind the onsubmit event from the input to the submit button:
    Code:
    <input type="submit"onsubmit="[I]validateForm()[/I]" value="submit"/>