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' />
Code: Select all
if (dlrDate==null || dlrDate=="")
{
alert("You must enter a date.");
return false;
}
Code: Select all
for (i=1;i<11;i++)
{
if (clockIn_ + i==null || clockIn_ + i=="")
...
As you can tell, I am a beginner.
Thanks!