Hello,
I am new to JavaScript, I have to make a pizza webpage for my assignment. I am done the HTML part and PHP part. I have a form and when the user clicks submit it calls the check() method in the JavaScript. Even if the fields are empty, the webpage goes to PHP page, which i do not want. If the input fields are empty, the browser should stop and wait for the user to re-enter. I have know idea what to do. Any suggestions? Thanks :)
if( a =="" || b=="" || c=="" || d==""){
alert("Input fields can not be empty");
}
P.S. I have this due pretty soon.