java code for html - registration boards lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mikex · 2014-12-03 11:51 Haha i know its very primitive question ..  But still .. I made my first Web page classic trash but i m trying hard i cant figure out how to make code that will force you to fulfill name and last name in registration process other ways you will get error that's saying youvto do so ) Sorry for my english hopefully it's understandable ) Can anyone help me out ? ty ---------------------------------------------------------------------- skalogryz · 2014-12-03 15:30 Just put a check (i.e. onclick event) on the submitting button. Loop through all the controls of the html form. If one of the values is empty then give an alert and do not submit the form (in case of onclick event you should return false... or event.preventDefault() ). If everything looks good - just submit it. These days people are using glam highlighting / color changing (css makes it easy). But for your sample - using alert should be good enough. ---------------------------------------------------------------------- mikex · 2014-12-03 20:37 Well i tried ) the only real achievement i made was that my page now refuse to work even if i fulfil it ) i have to find some examples online haha and look on that how its done ty anyway )