|
Are you going to do this server-side(PHP) or client-side (Javascript)? (BTW, Java and Javascript are totally different languages.) You can't do Javascript server-side and you can't do PHP client-side, so you first have to determine where the code is going to be running. "PHP or Javascript" just doesn't work - where the code runs determines which language it has to be.
|