Jump to content

javascript function to validate

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
edwin namisi

edwin namisi

    Newbie

  • Members
  • Pip
  • 6 posts
write java function that validate the following fields
student id
email address
date(date of registration can not be before date of birth,date of graduation cannot be before date of registration)
use while loop to search for the oldest student

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Is it Java or JavaScript?
How much are you paying?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Drew

Drew

    Learning Programmer

  • Members
  • PipPipPip
  • 42 posts
What are you validating the fields against?
What format for the date?
Does a WHILE LOOP absolutely HAVE to be used? Or can it be done simply?
Why not use PHP? Or somehting that is meant for form Validation rather than Javascript?

Just a few questions to think about, just curious, not trying to say you are wrong, but rather find out if programming it will be allowed if it's done a different way that is easier for some people.