Hi,
I'm currently attempting to incorporate some validation into a page but have come across a problem.
The page contains several textfields that require information entering into them - on clicking Submit these details are entered into a database.
However, before the page is submitted, I want to be able to check whether the fields are empty or not, or check whether they contain non-numeric values for example.
The code I currently have can test PHP variables and submits the form if the conditions are passed, or displays a pop up box if the conditions are not passed. How do I refer to a html textfield as opposed to a php variable though?
Thanks in advance.