help plz with subscribe form

thorjack1990

BANNED
Joined
Feb 15, 2013
Messages
71
Reaction score
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
 
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"/>
 
Back
Top