I have a web page that has a form for input. The form also uses php to concat the string "employee_" with $i, like so:
- Code: Select all
<input type='text' name='clockIn_<?php echo $i; ?>' size='8' />
Which works fine. I can insert the times into my MySQL tables. I want to verify that a time has been entered into the field. I am using this:
- Code: Select all
if (dlrDate==null || dlrDate=="")
{
alert("You must enter a date.");
return false;
}
to validate that a date has been entered. When I try to do:
- Code: Select all
for (i=1;i<11;i++)
{
if (clockIn_ + i==null || clockIn_ + i=="")
...
it doesn't work. Can anyone point me in the right direction?
As you can tell, I am a beginner.
Thanks!


even IE has it.